i2c: cadence: Unregister the clk notifier in error path
This patch ensures that the clock notifier is unregistered when driver probe is returning error. Fixes: df8eb569 ("i2c: Add driver for Cadence I2C controller") Signed-off-by: NSatish Nagireddy <satish.nagireddy@getcruise.com> Tested-by: NLars-Peter Clausen <lars@metafoo.de> Reviewed-by: NMichal Simek <michal.simek@amd.com> Signed-off-by: NWolfram Sang <wsa@kernel.org>
Showing
想要评论请 注册 或 登录