]> asedeno.scripts.mit.edu Git - linux.git/commit
i2c: xiic: defer the probe if clock is not found
authorVenkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com>
Thu, 9 Jan 2020 11:37:59 +0000 (17:07 +0530)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 15 Jan 2020 20:13:34 +0000 (21:13 +0100)
commitc9d059681b846f5d0a280950ea4dc58495b9b7a9
tree9791791a62f10c4f93b3f6545ddec66fa3b845fd
parentb4c119dbc300c7a6ee2da70d5c7ba14747b35142
i2c: xiic: defer the probe if clock is not found

It's not always the case that clock is already available when i2c
driver get probed at the first time, e.g. the clock is provided by
clock wizard which may be probed after i2c driver. So let's defer
the probe when devm_clk_get() call fails and give it chance to
try later.

Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-xiic.c