mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
i3c: Correct the macro module_i3c_i2c_driver
Present definition for module_i3c_i2c_driver uses only the 1st argument i.e., struct i3c_driver. Irrespective of CONFIG_I3C being enabled/disabled, struct i2c_driver is never passed to module_driver() Passing struct i2c_driver as the 4th argument works. Signed-off-by: Akshay Gupta <Akshay.Gupta@amd.com> Signed-off-by: Naveen Krishna Chatradhi <nchatrad@amd.com> Link: https://lore.kernel.org/r/20221205105413.937704-1-naveenkrishna.chatradhi@amd.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
This commit is contained in:
committed by
Alexandre Belloni
parent
9abf2313ad
commit
01744ce9f0
@@ -287,7 +287,8 @@ static inline void i3c_i2c_driver_unregister(struct i3c_driver *i3cdrv,
|
||||
#define module_i3c_i2c_driver(__i3cdrv, __i2cdrv) \
|
||||
module_driver(__i3cdrv, \
|
||||
i3c_i2c_driver_register, \
|
||||
i3c_i2c_driver_unregister)
|
||||
i3c_i2c_driver_unregister, \
|
||||
__i2cdrv)
|
||||
|
||||
int i3c_device_do_priv_xfers(struct i3c_device *dev,
|
||||
struct i3c_priv_xfer *xfers,
|
||||
|
||||
Reference in New Issue
Block a user