lantiq: use more devm for i2c
authorRosen Penev <rosenp@gmail.com>
Sat, 19 Oct 2024 02:08:02 +0000 (19:08 -0700)
committerPetr Štetiar <ynezz@true.cz>
Thu, 28 Nov 2024 18:46:47 +0000 (18:46 +0000)
commit62690e3b51e0ac227cf23e3da2f83e2fca3de6c4
tree972196fd0f069c5a51dcc942f6b1eb535e9c4481
parent2af51fbdabbec7ec3d6adcc5090222a9292d0a79
lantiq: use more devm for i2c

i2c_add_numbered_adapter is the wrong function to use here. It requires
setting nr to some value, otherwise it behaves the same as
i2c_add_adapter. nr is not set.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16825
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit 44824f0b787b13e2f2fccc58256b2c42fa3f9f5d)
Link: https://github.com/openwrt/openwrt/pull/17097
Signed-off-by: Petr Štetiar <ynezz@true.cz>
target/linux/lantiq/patches-6.6/0031-I2C-MIPS-lantiq-add-FALC-ON-i2c-bus-master.patch