aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/tps6507x-regulator.c
diff options
context:
space:
mode:
authorLiam Girdwood <lrg@slimlogic.co.uk>2009-08-24 05:31:34 -0400
committerLiam Girdwood <lrg@slimlogic.co.uk>2009-09-22 08:32:43 -0400
commit9e108d33edcb88bac3db39ba1683fc2c0591d7d4 (patch)
tree4fd7f1816d0de66f7bbcea309f46aedcfd3737ee /drivers/regulator/tps6507x-regulator.c
parent040932cdcfca9b0ac55a4f74f194c2e2c8a2527b (diff)
regulator: tps650xx - build fixes for x86_64
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>
Diffstat (limited to 'drivers/regulator/tps6507x-regulator.c')
-rw-r--r--drivers/regulator/tps6507x-regulator.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/regulator/tps6507x-regulator.c b/drivers/regulator/tps6507x-regulator.c
index 1aa363695124..f8a6dfbef751 100644
--- a/drivers/regulator/tps6507x-regulator.c
+++ b/drivers/regulator/tps6507x-regulator.c
@@ -670,9 +670,10 @@ static const struct tps_info tps6507x_regs[] = {
670 }, 670 },
671}; 671};
672 672
673static const struct i2c_device_id tps_6507x_id = { 673static const struct i2c_device_id tps_6507x_id[] = {
674 .name = "tps6507x", 674 {.name = "tps6507x",
675 .driver_data = (unsigned long) &tps6507x_regs[0], 675 .driver_data = (unsigned long) tps6507x_regs,},
676 { },
676}; 677};
677MODULE_DEVICE_TABLE(i2c, tps_6507x_id); 678MODULE_DEVICE_TABLE(i2c, tps_6507x_id);
678 679
@@ -683,7 +684,7 @@ static struct i2c_driver tps_6507x_i2c_driver = {
683 }, 684 },
684 .probe = tps_6507x_probe, 685 .probe = tps_6507x_probe,
685 .remove = __devexit_p(tps_6507x_remove), 686 .remove = __devexit_p(tps_6507x_remove),
686 .id_table = &tps_6507x_id, 687 .id_table = tps_6507x_id,
687}; 688};
688 689
689/** 690/**
@@ -710,4 +711,4 @@ module_exit(tps_6507x_cleanup);
710 711
711MODULE_AUTHOR("Texas Instruments"); 712MODULE_AUTHOR("Texas Instruments");
712MODULE_DESCRIPTION("TPS6507x voltage regulator driver"); 713MODULE_DESCRIPTION("TPS6507x voltage regulator driver");
713MODULE_LICENSE("GPLv2"); 714MODULE_LICENSE("GPL v2");