aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/tps65023-regulator.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/regulator/tps65023-regulator.c')
-rw-r--r--drivers/regulator/tps65023-regulator.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/regulator/tps65023-regulator.c b/drivers/regulator/tps65023-regulator.c
index 1e54f46af674..07fda0a75adf 100644
--- a/drivers/regulator/tps65023-regulator.c
+++ b/drivers/regulator/tps65023-regulator.c
@@ -587,9 +587,10 @@ static const struct tps_info tps65023_regs[] = {
587 }, 587 },
588}; 588};
589 589
590static const struct i2c_device_id tps_65023_id = { 590static const struct i2c_device_id tps_65023_id[] = {
591 .name = "tps65023", 591 {.name = "tps65023",
592 .driver_data = (unsigned long) &tps65023_regs[0], 592 .driver_data = (unsigned long) tps65023_regs,},
593 { },
593}; 594};
594 595
595MODULE_DEVICE_TABLE(i2c, tps_65023_id); 596MODULE_DEVICE_TABLE(i2c, tps_65023_id);
@@ -601,7 +602,7 @@ static struct i2c_driver tps_65023_i2c_driver = {
601 }, 602 },
602 .probe = tps_65023_probe, 603 .probe = tps_65023_probe,
603 .remove = __devexit_p(tps_65023_remove), 604 .remove = __devexit_p(tps_65023_remove),
604 .id_table = &tps_65023_id, 605 .id_table = tps_65023_id,
605}; 606};
606 607
607/** 608/**
@@ -628,4 +629,4 @@ module_exit(tps_65023_cleanup);
628 629
629MODULE_AUTHOR("Texas Instruments"); 630MODULE_AUTHOR("Texas Instruments");
630MODULE_DESCRIPTION("TPS65023 voltage regulator driver"); 631MODULE_DESCRIPTION("TPS65023 voltage regulator driver");
631MODULE_LICENSE("GPLv2"); 632MODULE_LICENSE("GPL v2");