diff options
Diffstat (limited to 'drivers/regulator/tps6507x-regulator.c')
-rw-r--r-- | drivers/regulator/tps6507x-regulator.c | 11 |
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 | ||
673 | static const struct i2c_device_id tps_6507x_id = { | 673 | static 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 | }; |
677 | MODULE_DEVICE_TABLE(i2c, tps_6507x_id); | 678 | MODULE_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 | ||
711 | MODULE_AUTHOR("Texas Instruments"); | 712 | MODULE_AUTHOR("Texas Instruments"); |
712 | MODULE_DESCRIPTION("TPS6507x voltage regulator driver"); | 713 | MODULE_DESCRIPTION("TPS6507x voltage regulator driver"); |
713 | MODULE_LICENSE("GPLv2"); | 714 | MODULE_LICENSE("GPL v2"); |