diff options
author | Daniel Mack <zonque@gmail.com> | 2013-09-22 21:51:48 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-09-26 09:04:06 -0700 |
commit | beb900fc2428fa812e4a49251ef8396fa46b77fc (patch) | |
tree | d539afaf3a5c7a9b4f5d80b871a60acf8679d5be | |
parent | e06465050e2a62ccab164d116e443101279c14bb (diff) | |
download | linux-beb900fc2428fa812e4a49251ef8396fa46b77fc.tar.bz2 |
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.c | 7 |
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) return 0; } +static const struct spi_device_id dac7512_id_table[] = { + { "dac7512", 0 }, + { } +}; +MODULE_DEVICE_TABLE(spi, dac7512_id_table); + static struct spi_driver dac7512_driver = { .driver = { .name = "dac7512", @@ -79,6 +85,7 @@ static struct spi_driver dac7512_driver = { }, .probe = dac7512_probe, .remove = dac7512_remove, + .id_table = dac7512_id_table, }; module_spi_driver(dac7512_driver); |