summaryrefslogtreecommitdiff
path: root/target/linux/cns3xxx/files/drivers/spi/spi-cns3xxx.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-03-09 18:51:46 +0000
committerFelix Fietkau <nbd@openwrt.org>2013-03-09 18:51:46 +0000
commit95f14d052a7439c60e35a6d910d6bd3de023907c (patch)
tree83b1039c3c9d0ff8d8b842d1ec5fc4a392a3a7d2 /target/linux/cns3xxx/files/drivers/spi/spi-cns3xxx.c
parent85348d602e2c4b383fa0bec95fb97d9d79094743 (diff)
downloadmtk-20170518-95f14d052a7439c60e35a6d910d6bd3de023907c.zip
mtk-20170518-95f14d052a7439c60e35a6d910d6bd3de023907c.tar.gz
mtk-20170518-95f14d052a7439c60e35a6d910d6bd3de023907c.tar.bz2
cns3xxx: add linux 3.8 support and use it by default
SVN-Revision: 35908
Diffstat (limited to 'target/linux/cns3xxx/files/drivers/spi/spi-cns3xxx.c')
-rw-r--r--target/linux/cns3xxx/files/drivers/spi/spi-cns3xxx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/cns3xxx/files/drivers/spi/spi-cns3xxx.c b/target/linux/cns3xxx/files/drivers/spi/spi-cns3xxx.c
index c66ef82..2642639 100644
--- a/target/linux/cns3xxx/files/drivers/spi/spi-cns3xxx.c
+++ b/target/linux/cns3xxx/files/drivers/spi/spi-cns3xxx.c
@@ -324,7 +324,7 @@ static void __init cns3xxx_spi_initial(void)
return;
}
-static int __devinit cns3xxx_spi_probe(struct platform_device *pdev)
+static int cns3xxx_spi_probe(struct platform_device *pdev)
{
struct spi_master *master;
struct cns3xxx_spi *hw;
@@ -384,7 +384,7 @@ err_nomem:
return err;
}
-static int __devexit cns3xxx_spi_remove(struct platform_device *dev)
+static int cns3xxx_spi_remove(struct platform_device *dev)
{
struct cns3xxx_spi *hw = platform_get_drvdata(dev);
@@ -419,7 +419,7 @@ static int cns3xxx_spi_resume(struct platform_device *pdev)
static struct platform_driver cns3xxx_spi_driver = {
.probe = cns3xxx_spi_probe,
- .remove = __devexit_p(cns3xxx_spi_remove),
+ .remove = cns3xxx_spi_remove,
.suspend = cns3xxx_spi_suspend,
.resume = cns3xxx_spi_resume,
.driver = {