mfd: bcm590xx: Fix type argument for module device table
authorAxel Lin <axel.lin@ingics.com>
Sat, 15 Mar 2014 01:24:50 +0000 (09:24 +0800)
committerLee Jones <lee.jones@linaro.org>
Wed, 19 Mar 2014 09:00:05 +0000 (09:00 +0000)
This fixes below build error.

FATAL: drivers/mfd/bcm590xx: sizeof(struct i2c_device_id)=24 is not a modulo of the size of section __mod_i2c_device_table=392.
Fix definition of struct i2c_device_id in mod_devicetable.h
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/bcm590xx.c

index 926a57e4d533dfd9b9c60b217f24d96557145c56..e9a33c79431bfde8ed8cec42e7d09a3d2c8a3736 100644 (file)
@@ -68,7 +68,7 @@ static const struct of_device_id bcm590xx_of_match[] = {
        { .compatible = "brcm,bcm59056" },
        { }
 };
-MODULE_DEVICE_TABLE(i2c, bcm590xx_of_match);
+MODULE_DEVICE_TABLE(of, bcm590xx_of_match);
 
 static const struct i2c_device_id bcm590xx_i2c_id[] = {
        { "bcm59056" },