diff options
Diffstat (limited to 'drivers/input/touchscreen/ad7877.c')
-rw-r--r-- | drivers/input/touchscreen/ad7877.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/drivers/input/touchscreen/ad7877.c b/drivers/input/touchscreen/ad7877.c index 42ae7a232f63..2c7692108e6c 100644 --- a/drivers/input/touchscreen/ad7877.c +++ b/drivers/input/touchscreen/ad7877.c | |||
@@ -612,10 +612,10 @@ static struct attribute *ad7877_attributes[] = { | |||
612 | NULL | 612 | NULL |
613 | }; | 613 | }; |
614 | 614 | ||
615 | static mode_t ad7877_attr_is_visible(struct kobject *kobj, | 615 | static umode_t ad7877_attr_is_visible(struct kobject *kobj, |
616 | struct attribute *attr, int n) | 616 | struct attribute *attr, int n) |
617 | { | 617 | { |
618 | mode_t mode = attr->mode; | 618 | umode_t mode = attr->mode; |
619 | 619 | ||
620 | if (attr == &dev_attr_aux3.attr) { | 620 | if (attr == &dev_attr_aux3.attr) { |
621 | if (gpio3) | 621 | if (gpio3) |
@@ -860,17 +860,7 @@ static struct spi_driver ad7877_driver = { | |||
860 | .remove = __devexit_p(ad7877_remove), | 860 | .remove = __devexit_p(ad7877_remove), |
861 | }; | 861 | }; |
862 | 862 | ||
863 | static int __init ad7877_init(void) | 863 | module_spi_driver(ad7877_driver); |
864 | { | ||
865 | return spi_register_driver(&ad7877_driver); | ||
866 | } | ||
867 | module_init(ad7877_init); | ||
868 | |||
869 | static void __exit ad7877_exit(void) | ||
870 | { | ||
871 | spi_unregister_driver(&ad7877_driver); | ||
872 | } | ||
873 | module_exit(ad7877_exit); | ||
874 | 864 | ||
875 | MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>"); | 865 | MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>"); |
876 | MODULE_DESCRIPTION("AD7877 touchscreen Driver"); | 866 | MODULE_DESCRIPTION("AD7877 touchscreen Driver"); |