MLK-21850-1 dm: device: Check driver flag before setting default clocks
authorYe Li <ye.li@nxp.com>
Sun, 28 Apr 2019 11:08:43 +0000 (04:08 -0700)
committerYe Li <ye.li@nxp.com>
Fri, 24 May 2019 11:28:17 +0000 (04:28 -0700)
commit5dd4ff270dc387111f5feb85e4020adf2d60a32f
treee37dea14bb9beeca78fd4a0415d7ba367740834b
parent21bb8ec6a9780e746a3b30ae96c6c15a74715566
MLK-21850-1 dm: device: Check driver flag before setting default clocks

Add a new driver FLAG (DM_FLAG_IGNORE_DEFAULT_CLKS). If any driver
is set with this flag, then when probing the device, we will skip
setting the default clocks.

This is useful when clock driver can't work with some device driver.

Signed-off-by: Ye Li <ye.li@nxp.com>
drivers/core/device.c
include/dm/device.h