aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Mack <zonque@gmail.com>2013-09-22 15:51:48 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-09-26 12:04:06 -0400
commitbeb900fc2428fa812e4a49251ef8396fa46b77fc (patch)
treed539afaf3a5c7a9b4f5d80b871a60acf8679d5be
parente06465050e2a62ccab164d116e443101279c14bb (diff)
drivers: misc: ti_dac7512: provide a SPI ID table
This way, the module can be autoloaded by the SPI core. Signed-off-by: Daniel Mack <zonque@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/misc/ti_dac7512.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/misc/ti_dac7512.c b/drivers/misc/ti_dac7512.c
index 46dfbf36bbea..6393a68122ae 100644
--- a/drivers/misc/ti_dac7512.c
+++ b/drivers/misc/ti_dac7512.c
@@ -72,6 +72,12 @@ static int dac7512_remove(struct spi_device *spi)
72 return 0; 72 return 0;
73} 73}
74 74
75static const struct spi_device_id dac7512_id_table[] = {
76 { "dac7512", 0 },
77 { }
78};
79MODULE_DEVICE_TABLE(spi, dac7512_id_table);
80
75static struct spi_driver dac7512_driver = { 81static struct spi_driver dac7512_driver = {
76 .driver = { 82 .driver = {
77 .name = "dac7512", 83 .name = "dac7512",
@@ -79,6 +85,7 @@ static struct spi_driver dac7512_driver = {
79 }, 85 },
80 .probe = dac7512_probe, 86 .probe = dac7512_probe,
81 .remove = dac7512_remove, 87 .remove = dac7512_remove,
88 .id_table = dac7512_id_table,
82}; 89};
83 90
84module_spi_driver(dac7512_driver); 91module_spi_driver(dac7512_driver);