Skip to content

Commit 01744ce

Browse files
nchatradalexandrebelloni
authored andcommitted
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 <[email protected]> Signed-off-by: Naveen Krishna Chatradhi <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
1 parent 9abf231 commit 01744ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/linux/i3c/device.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,8 @@ static inline void i3c_i2c_driver_unregister(struct i3c_driver *i3cdrv,
287287
#define module_i3c_i2c_driver(__i3cdrv, __i2cdrv) \
288288
module_driver(__i3cdrv, \
289289
i3c_i2c_driver_register, \
290-
i3c_i2c_driver_unregister)
290+
i3c_i2c_driver_unregister, \
291+
__i2cdrv)
291292

292293
int i3c_device_do_priv_xfers(struct i3c_device *dev,
293294
struct i3c_priv_xfer *xfers,

0 commit comments

Comments
 (0)