rt8366*: use __devinit instead of __init for the probe function to fix a section...
authorFelix Fietkau <nbd@openwrt.org>
Thu, 21 Oct 2010 18:42:05 +0000 (18:42 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 21 Oct 2010 18:42:05 +0000 (18:42 +0000)
SVN-Revision: 23573

target/linux/generic/files/drivers/net/phy/rtl8366rb.c
target/linux/generic/files/drivers/net/phy/rtl8366s.c

index b55729b..ae6d429 100644 (file)
@@ -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;
index d45e4d7..f9a4c8c 100644 (file)
@@ -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;