[PATCH] i2c: davinci: Unregister cpufreq notifier on probe failure

Andi Shyti andi.shyti at kernel.org
Sun Jun 14 15:10:18 PDT 2026


Hi Haoxing,

On Wed, Jun 10, 2026 at 11:05:13AM +0800, Haoxiang Li wrote:
> davinci_i2c_probe() registers a cpufreq transition notifier before adding
> the I2C adapter.  If i2c_add_numbered_adapter() fails, the probe error path
> releases the device resources without unregistering the notifier.
> 
> Add a dedicated error path to unregister the cpufreq notifier after
> i2c_add_numbered_adapter() fails.
> 
> Fixes: 82c0de11b734 ("i2c: davinci: Add cpufreq support")
> Cc: stable at vger.kernel.org
> Signed-off-by: Haoxiang Li <haoxiang_li2024 at 163.com>

merged to i2c/i2c-host.

Thanks,
Andi



More information about the linux-arm-kernel mailing list