diff options
Diffstat (limited to 'drivers/spi/spidev.c')
-rw-r--r-- | drivers/spi/spidev.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c index 2e0655dbe07..830adbed1d7 100644 --- a/drivers/spi/spidev.c +++ b/drivers/spi/spidev.c | |||
@@ -31,8 +31,6 @@ | |||
31 | #include <linux/mutex.h> | 31 | #include <linux/mutex.h> |
32 | #include <linux/slab.h> | 32 | #include <linux/slab.h> |
33 | #include <linux/compat.h> | 33 | #include <linux/compat.h> |
34 | #include <linux/of.h> | ||
35 | #include <linux/of_device.h> | ||
36 | 34 | ||
37 | #include <linux/spi/spi.h> | 35 | #include <linux/spi/spi.h> |
38 | #include <linux/spi/spidev.h> | 36 | #include <linux/spi/spidev.h> |
@@ -573,7 +571,7 @@ static struct class *spidev_class; | |||
573 | 571 | ||
574 | /*-------------------------------------------------------------------------*/ | 572 | /*-------------------------------------------------------------------------*/ |
575 | 573 | ||
576 | static int spidev_probe(struct spi_device *spi) | 574 | static int __devinit spidev_probe(struct spi_device *spi) |
577 | { | 575 | { |
578 | struct spidev_data *spidev; | 576 | struct spidev_data *spidev; |
579 | int status; | 577 | int status; |
@@ -622,7 +620,7 @@ static int spidev_probe(struct spi_device *spi) | |||
622 | return status; | 620 | return status; |
623 | } | 621 | } |
624 | 622 | ||
625 | static int spidev_remove(struct spi_device *spi) | 623 | static int __devexit spidev_remove(struct spi_device *spi) |
626 | { | 624 | { |
627 | struct spidev_data *spidev = spi_get_drvdata(spi); | 625 | struct spidev_data *spidev = spi_get_drvdata(spi); |
628 | 626 | ||
@@ -644,21 +642,13 @@ static int spidev_remove(struct spi_device *spi) | |||
644 | return 0; | 642 | return 0; |
645 | } | 643 | } |
646 | 644 | ||
647 | static const struct of_device_id spidev_dt_ids[] = { | ||
648 | { .compatible = "rohm,dh2228fv" }, | ||
649 | {}, | ||
650 | }; | ||
651 | |||
652 | MODULE_DEVICE_TABLE(of, spidev_dt_ids); | ||
653 | |||
654 | static struct spi_driver spidev_spi_driver = { | 645 | static struct spi_driver spidev_spi_driver = { |
655 | .driver = { | 646 | .driver = { |
656 | .name = "spidev", | 647 | .name = "spidev", |
657 | .owner = THIS_MODULE, | 648 | .owner = THIS_MODULE, |
658 | .of_match_table = of_match_ptr(spidev_dt_ids), | ||
659 | }, | 649 | }, |
660 | .probe = spidev_probe, | 650 | .probe = spidev_probe, |
661 | .remove = spidev_remove, | 651 | .remove = __devexit_p(spidev_remove), |
662 | 652 | ||
663 | /* NOTE: suspend/resume methods are not necessary here. | 653 | /* NOTE: suspend/resume methods are not necessary here. |
664 | * We don't do anything except pass the requests to/from | 654 | * We don't do anything except pass the requests to/from |