]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
regulator: tps650xx - build fixes for x86_64
authorLiam Girdwood <lrg@slimlogic.co.uk>
Mon, 24 Aug 2009 09:31:34 +0000 (10:31 +0100)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Tue, 22 Sep 2009 12:32:43 +0000 (13:32 +0100)
Fixes the following errors on both tps650xx regulator drivers :-

drivers/regulator/tps65023-regulator: struct i2c_device_id is 32 bytes.  The last of 1 is:
0x74 0x70 0x73 0x36 0x35 0x30 0x32 0x33 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
FATAL: drivers/regulator/tps65023-regulator: struct i2c_device_id is not terminated with a NULL entry!

This patch also fixes the GPL v2 licence string for both drivers.

Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
drivers/regulator/tps65023-regulator.c
drivers/regulator/tps6507x-regulator.c

index 1e54f46af674e0e145ee24b7f076e9e9491d5e12..07fda0a75adf4aa0ef9ae012fea8a1fb50cb97f4 100644 (file)
@@ -587,9 +587,10 @@ static const struct tps_info tps65023_regs[] = {
        },
 };
 
-static const struct i2c_device_id tps_65023_id = {
-       .name = "tps65023",
-       .driver_data = (unsigned long) &tps65023_regs[0],
+static const struct i2c_device_id tps_65023_id[] = {
+       {.name = "tps65023",
+       .driver_data = (unsigned long) tps65023_regs,},
+       { },
 };
 
 MODULE_DEVICE_TABLE(i2c, tps_65023_id);
@@ -601,7 +602,7 @@ static struct i2c_driver tps_65023_i2c_driver = {
        },
        .probe = tps_65023_probe,
        .remove = __devexit_p(tps_65023_remove),
-       .id_table = &tps_65023_id,
+       .id_table = tps_65023_id,
 };
 
 /**
@@ -628,4 +629,4 @@ module_exit(tps_65023_cleanup);
 
 MODULE_AUTHOR("Texas Instruments");
 MODULE_DESCRIPTION("TPS65023 voltage regulator driver");
-MODULE_LICENSE("GPLv2");
+MODULE_LICENSE("GPL v2");
index 1aa363695124542215b48adf80e1d71b9e9b13b0..f8a6dfbef75189301872a9408ffc56ce82bbe43b 100644 (file)
@@ -670,9 +670,10 @@ static const struct tps_info tps6507x_regs[] = {
        },
 };
 
-static const struct i2c_device_id tps_6507x_id = {
-       .name = "tps6507x",
-       .driver_data = (unsigned long) &tps6507x_regs[0],
+static const struct i2c_device_id tps_6507x_id[] = {
+       {.name = "tps6507x",
+       .driver_data = (unsigned long) tps6507x_regs,},
+       { },
 };
 MODULE_DEVICE_TABLE(i2c, tps_6507x_id);
 
@@ -683,7 +684,7 @@ static struct i2c_driver tps_6507x_i2c_driver = {
        },
        .probe = tps_6507x_probe,
        .remove = __devexit_p(tps_6507x_remove),
-       .id_table = &tps_6507x_id,
+       .id_table = tps_6507x_id,
 };
 
 /**
@@ -710,4 +711,4 @@ module_exit(tps_6507x_cleanup);
 
 MODULE_AUTHOR("Texas Instruments");
 MODULE_DESCRIPTION("TPS6507x voltage regulator driver");
-MODULE_LICENSE("GPLv2");
+MODULE_LICENSE("GPL v2");