From a6e0b69d3bb8455f6cf8791c79653c4dbb5d24f5 Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Fri, 14 Jan 2011 18:19:09 +0000 Subject: [PATCH] backfire: rt8366*: use __devinit instead of __init for the probe function to fix a section mismatch (backport of r23573) SVN-Revision: 24989 --- target/linux/generic-2.6/files/drivers/net/phy/rtl8366rb.c | 2 +- target/linux/generic-2.6/files/drivers/net/phy/rtl8366s.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/target/linux/generic-2.6/files/drivers/net/phy/rtl8366rb.c b/target/linux/generic-2.6/files/drivers/net/phy/rtl8366rb.c index b55729bb75..ae6d429254 100644 --- a/target/linux/generic-2.6/files/drivers/net/phy/rtl8366rb.c +++ b/target/linux/generic-2.6/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-2.6/files/drivers/net/phy/rtl8366s.c b/target/linux/generic-2.6/files/drivers/net/phy/rtl8366s.c index d45e4d76c3..f9a4c8c279 100644 --- a/target/linux/generic-2.6/files/drivers/net/phy/rtl8366s.c +++ b/target/linux/generic-2.6/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; -- 2.30.2