diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
commit | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (patch) | |
tree | a8f4d49d63b1ecc92f2fddceba0655b2472c5bd9 /drivers/misc/eeprom/eeprom_93xx46.c | |
parent | 406089d01562f1e2bf9f089fd7637009ebaad589 (diff) |
Patched in Tegra support.
Diffstat (limited to 'drivers/misc/eeprom/eeprom_93xx46.c')
-rw-r--r-- | drivers/misc/eeprom/eeprom_93xx46.c | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/drivers/misc/eeprom/eeprom_93xx46.c b/drivers/misc/eeprom/eeprom_93xx46.c index a6b5d5e7348..0c7ebb1e19e 100644 --- a/drivers/misc/eeprom/eeprom_93xx46.c +++ b/drivers/misc/eeprom/eeprom_93xx46.c | |||
@@ -309,7 +309,7 @@ static ssize_t eeprom_93xx46_store_erase(struct device *dev, | |||
309 | } | 309 | } |
310 | static DEVICE_ATTR(erase, S_IWUSR, NULL, eeprom_93xx46_store_erase); | 310 | static DEVICE_ATTR(erase, S_IWUSR, NULL, eeprom_93xx46_store_erase); |
311 | 311 | ||
312 | static int eeprom_93xx46_probe(struct spi_device *spi) | 312 | static int __devinit eeprom_93xx46_probe(struct spi_device *spi) |
313 | { | 313 | { |
314 | struct eeprom_93xx46_platform_data *pd; | 314 | struct eeprom_93xx46_platform_data *pd; |
315 | struct eeprom_93xx46_dev *edev; | 315 | struct eeprom_93xx46_dev *edev; |
@@ -370,7 +370,7 @@ fail: | |||
370 | return err; | 370 | return err; |
371 | } | 371 | } |
372 | 372 | ||
373 | static int eeprom_93xx46_remove(struct spi_device *spi) | 373 | static int __devexit eeprom_93xx46_remove(struct spi_device *spi) |
374 | { | 374 | { |
375 | struct eeprom_93xx46_dev *edev = dev_get_drvdata(&spi->dev); | 375 | struct eeprom_93xx46_dev *edev = dev_get_drvdata(&spi->dev); |
376 | 376 | ||
@@ -389,10 +389,20 @@ static struct spi_driver eeprom_93xx46_driver = { | |||
389 | .owner = THIS_MODULE, | 389 | .owner = THIS_MODULE, |
390 | }, | 390 | }, |
391 | .probe = eeprom_93xx46_probe, | 391 | .probe = eeprom_93xx46_probe, |
392 | .remove = eeprom_93xx46_remove, | 392 | .remove = __devexit_p(eeprom_93xx46_remove), |
393 | }; | 393 | }; |
394 | 394 | ||
395 | module_spi_driver(eeprom_93xx46_driver); | 395 | static int __init eeprom_93xx46_init(void) |
396 | { | ||
397 | return spi_register_driver(&eeprom_93xx46_driver); | ||
398 | } | ||
399 | module_init(eeprom_93xx46_init); | ||
400 | |||
401 | static void __exit eeprom_93xx46_exit(void) | ||
402 | { | ||
403 | spi_unregister_driver(&eeprom_93xx46_driver); | ||
404 | } | ||
405 | module_exit(eeprom_93xx46_exit); | ||
396 | 406 | ||
397 | MODULE_LICENSE("GPL"); | 407 | MODULE_LICENSE("GPL"); |
398 | MODULE_DESCRIPTION("Driver for 93xx46 EEPROMs"); | 408 | MODULE_DESCRIPTION("Driver for 93xx46 EEPROMs"); |