i2c: cadence: Unregister the clk notifier in error path
authorSatish Nagireddy <satish.nagireddy@getcruise.com>
Tue, 28 Jun 2022 19:12:16 +0000 (12:12 -0700)
committerWolfram Sang <wsa@kernel.org>
Thu, 7 Jul 2022 21:06:34 +0000 (23:06 +0200)
commit3501f0c663063513ad604fb1b3f06af637d3396d
tree319856d43e5b7ded6e8e2ab921a956b1f7f2ac71
parent8ad59b397f86a4d8014966fdc0552095a0c4fb2b
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: df8eb5691c48 ("i2c: Add driver for Cadence I2C controller")
Signed-off-by: Satish Nagireddy <satish.nagireddy@getcruise.com>
Tested-by: Lars-Peter Clausen <lars@metafoo.de>
Reviewed-by: Michal Simek <michal.simek@amd.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-cadence.c