From 721bf97863757c4add26fe93c7f5487de7ab136a Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sun, 27 Jan 2013 17:48:48 +0000 Subject: kernel: remove __devinit, __devexit and __devexit_p for kernel 3.8 These attributes where removed with kernel 3.8 and are now causing compile errors. SVN-Revision: 35328 --- target/linux/generic/patches-3.8/840-rtc7301.patch | 6 +++--- target/linux/generic/patches-3.8/841-rtc_pt7c4338.patch | 4 ++-- target/linux/generic/patches-3.8/862-gpio_spi_driver.patch | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'target/linux/generic/patches-3.8') diff --git a/target/linux/generic/patches-3.8/840-rtc7301.patch b/target/linux/generic/patches-3.8/840-rtc7301.patch index 89b5d46fc9..ad837eb971 100644 --- a/target/linux/generic/patches-3.8/840-rtc7301.patch +++ b/target/linux/generic/patches-3.8/840-rtc7301.patch @@ -185,7 +185,7 @@ + .set_time = rtc7301_set_datetime, +}; + -+static int __devinit rtc7301_probe(struct platform_device *pdev) ++static int rtc7301_probe(struct platform_device *pdev) +{ + struct rtc_device *rtc; + struct resource *res; @@ -211,7 +211,7 @@ + return 0; +} + -+static int __devexit rtc7301_remove(struct platform_device *pdev) ++static int rtc7301_remove(struct platform_device *pdev) +{ + struct rtc_device *rtc = platform_get_drvdata(pdev); + @@ -228,7 +228,7 @@ + .owner = THIS_MODULE, + }, + .probe = rtc7301_probe, -+ .remove = __devexit_p(rtc7301_remove), ++ .remove = rtc7301_remove, +}; + +static __init int rtc7301_init(void) diff --git a/target/linux/generic/patches-3.8/841-rtc_pt7c4338.patch b/target/linux/generic/patches-3.8/841-rtc_pt7c4338.patch index 564e506017..7d763146fc 100644 --- a/target/linux/generic/patches-3.8/841-rtc_pt7c4338.patch +++ b/target/linux/generic/patches-3.8/841-rtc_pt7c4338.patch @@ -209,7 +209,7 @@ + return ret; +} + -+static int __devexit pt7c4338_remove(struct i2c_client *client) ++static int pt7c4338_remove(struct i2c_client *client) +{ + struct pt7c4338 *pt7c4338 = i2c_get_clientdata(client); + @@ -225,7 +225,7 @@ + .owner = THIS_MODULE, + }, + .probe = pt7c4338_probe, -+ .remove = __devexit_p(pt7c4338_remove), ++ .remove = pt7c4338_remove, + .id_table = pt7c4338_id, +}; + diff --git a/target/linux/generic/patches-3.8/862-gpio_spi_driver.patch b/target/linux/generic/patches-3.8/862-gpio_spi_driver.patch index 86ae86df82..e68f808c3f 100644 --- a/target/linux/generic/patches-3.8/862-gpio_spi_driver.patch +++ b/target/linux/generic/patches-3.8/862-gpio_spi_driver.patch @@ -286,7 +286,7 @@ Please use the new mainline SPI-GPIO driver, as of 2.6.29. + return err; +} + -+static int __devexit spi_gpio_remove(struct platform_device *pdev) ++static int spi_gpio_remove(struct platform_device *pdev) +{ + struct spi_gpio *sp; + struct spi_gpio_platform_data *pdata; @@ -310,7 +310,7 @@ Please use the new mainline SPI-GPIO driver, as of 2.6.29. + .owner = THIS_MODULE, + }, + .probe = spi_gpio_probe, -+ .remove = __devexit_p(spi_gpio_remove), ++ .remove = spi_gpio_remove, +}; + +int spi_gpio_next_id(void) -- cgit v1.2.3