summaryrefslogtreecommitdiff
path: root/target/linux/generic/files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-10-21 18:42:05 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-10-21 18:42:05 +0000
commit0ee2fda5e1f6aa62cc401853aead1468ca991eb7 (patch)
tree372186e6ecd3324720f0ea86ef02461203156fb9 /target/linux/generic/files
parent0ccae6ec9e60839a1c3f6448fc8b13a568ab2f54 (diff)
downloadmtk-20170518-0ee2fda5e1f6aa62cc401853aead1468ca991eb7.zip
mtk-20170518-0ee2fda5e1f6aa62cc401853aead1468ca991eb7.tar.gz
mtk-20170518-0ee2fda5e1f6aa62cc401853aead1468ca991eb7.tar.bz2
rt8366*: use __devinit instead of __init for the probe function to fix a section mismatch
SVN-Revision: 23573
Diffstat (limited to 'target/linux/generic/files')
-rw-r--r--target/linux/generic/files/drivers/net/phy/rtl8366rb.c2
-rw-r--r--target/linux/generic/files/drivers/net/phy/rtl8366s.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/rtl8366rb.c b/target/linux/generic/files/drivers/net/phy/rtl8366rb.c
index b55729b..ae6d429 100644
--- a/target/linux/generic/files/drivers/net/phy/rtl8366rb.c
+++ b/target/linux/generic/files/drivers/net/phy/rtl8366rb.c
@@ -1209,7 +1209,7 @@ static struct rtl8366_smi_ops rtl8366rb_smi_ops = {
.enable_vlan4k = rtl8366rb_enable_vlan4k,
};
-static int __init rtl8366rb_probe(struct platform_device *pdev)
+static int __devinit rtl8366rb_probe(struct platform_device *pdev)
{
static int rtl8366_smi_version_printed;
struct rtl8366rb_platform_data *pdata;
diff --git a/target/linux/generic/files/drivers/net/phy/rtl8366s.c b/target/linux/generic/files/drivers/net/phy/rtl8366s.c
index d45e4d7..f9a4c8c 100644
--- a/target/linux/generic/files/drivers/net/phy/rtl8366s.c
+++ b/target/linux/generic/files/drivers/net/phy/rtl8366s.c
@@ -1027,7 +1027,7 @@ static struct rtl8366_smi_ops rtl8366s_smi_ops = {
.enable_vlan4k = rtl8366s_enable_vlan4k,
};
-static int __init rtl8366s_probe(struct platform_device *pdev)
+static int __devinit rtl8366s_probe(struct platform_device *pdev)
{
static int rtl8366_smi_version_printed;
struct rtl8366s_platform_data *pdata;