Skip to contentSkip to conversation

i2c: i2c-bcm-kona: Fix module build

PATCH Applied Tim Kryger 2 participants 3 messages Nov 25, 2013 – Nov 27, 2013

Subsystems (2)
lore
Share & tools
lore

Tim Kryger

author
#0 lore raw

PATCH 1/1 i2c: i2c-bcm-kona: Fix module build

Correct a typo that prevented the driver from being built as a module.

---
 drivers/i2c/busses/i2c-bcm-kona.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/i2c/busses/i2c-bcm-kona.c +1 -1
index 036cf03..2fefc24 100644
@@ -891,7 +891,7 @@ static const struct of_device_id bcm_kona_i2c_of_match[] = {
 	{.compatible = "brcm,kona-i2c",},
 	{},
 };
-MODULE_DEVICE_TABLE(of, kona_i2c_of_match);
+MODULE_DEVICE_TABLE(of, bcm_kona_i2c_of_match);
 
 static struct platform_driver bcm_kona_i2c_driver = {
 	.driver = {
Signature · 1 line
1.8.0.1
Applied
#1 lore raw
Quoted 3 lines · Tim Kryger

Correct a typo that prevented the driver from being built as a module.

Applied to for-current, thanks!

Have you also tried repeated module loading/unloading?

author
#2 lore raw
Quoted 1 line · Wolfram Sang

Have you also tried repeated module loading/unloading?

I ran a loop of insmod + rmmod 1000 times and didn't see any issues.

Thanks,
Tim Kryger