summaryrefslogtreecommitdiff
path: root/target/linux/generic/patches-2.6.38/860-01_hotpluggable_spi_gpio.patch
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-05-12 12:05:21 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-05-12 12:05:21 +0000
commite710aeeab10e2b420ad012c0d9fb639266a63515 (patch)
tree772ed4e14639b7d0f8f9d96a67a9ccd660c15f0f /target/linux/generic/patches-2.6.38/860-01_hotpluggable_spi_gpio.patch
parent08ed044595b404fa626f71c9b1c1fbc599ad7587 (diff)
downloadmtk-20170518-e710aeeab10e2b420ad012c0d9fb639266a63515.zip
mtk-20170518-e710aeeab10e2b420ad012c0d9fb639266a63515.tar.gz
mtk-20170518-e710aeeab10e2b420ad012c0d9fb639266a63515.tar.bz2
linux/2.6.38: R.I.P.
It is used only by the broken coldfire target. SVN-Revision: 31688
Diffstat (limited to 'target/linux/generic/patches-2.6.38/860-01_hotpluggable_spi_gpio.patch')
-rw-r--r--target/linux/generic/patches-2.6.38/860-01_hotpluggable_spi_gpio.patch60
1 files changed, 0 insertions, 60 deletions
diff --git a/target/linux/generic/patches-2.6.38/860-01_hotpluggable_spi_gpio.patch b/target/linux/generic/patches-2.6.38/860-01_hotpluggable_spi_gpio.patch
deleted file mode 100644
index f8e6374..0000000
--- a/target/linux/generic/patches-2.6.38/860-01_hotpluggable_spi_gpio.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-Fix spi-gpio for hotplug.
-
---mb
-
-
-
---- a/drivers/spi/spi_gpio.c
-+++ b/drivers/spi/spi_gpio.c
-@@ -255,7 +255,7 @@ static void spi_gpio_cleanup(struct spi_
- spi_bitbang_cleanup(spi);
- }
-
--static int __init spi_gpio_alloc(unsigned pin, const char *label, bool is_in)
-+static int __devinit spi_gpio_alloc(unsigned pin, const char *label, bool is_in)
- {
- int value;
-
-@@ -269,7 +269,7 @@ static int __init spi_gpio_alloc(unsigne
- return value;
- }
-
--static int __init
-+static int __devinit
- spi_gpio_request(struct spi_gpio_platform_data *pdata, const char *label,
- u16 *res_flags)
- {
-@@ -311,7 +311,7 @@ done:
- return value;
- }
-
--static int __init spi_gpio_probe(struct platform_device *pdev)
-+static int __devinit spi_gpio_probe(struct platform_device *pdev)
- {
- int status;
- struct spi_master *master;
-@@ -379,7 +379,7 @@ gpio_free:
- return status;
- }
-
--static int __exit spi_gpio_remove(struct platform_device *pdev)
-+static int __devexit spi_gpio_remove(struct platform_device *pdev)
- {
- struct spi_gpio *spi_gpio;
- struct spi_gpio_platform_data *pdata;
-@@ -408,12 +408,13 @@ MODULE_ALIAS("platform:" DRIVER_NAME);
- static struct platform_driver spi_gpio_driver = {
- .driver.name = DRIVER_NAME,
- .driver.owner = THIS_MODULE,
-- .remove = __exit_p(spi_gpio_remove),
-+ .probe = spi_gpio_probe,
-+ .remove = __devexit_p(spi_gpio_remove),
- };
-
- static int __init spi_gpio_init(void)
- {
-- return platform_driver_probe(&spi_gpio_driver, spi_gpio_probe);
-+ return platform_driver_register(&spi_gpio_driver);
- }
- module_init(spi_gpio_init);
-