From: Marc Kleine-Budde Date: Thu, 21 Oct 2010 01:01:17 +0000 (+0000) Subject: can: at91_can: fix section mismatch warning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a9d992ecb36f8ed00130eaf41a406fda03433d23;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git can: at91_can: fix section mismatch warning ...by adding the correct annotation "__devinit" to the driver's probe function. Signed-off-by: Marc Kleine-Budde Acked-by: Uwe Kleine-König Signed-off-by: David S. Miller --- diff --git a/drivers/net/can/at91_can.c b/drivers/net/can/at91_can.c index 1954ab003db7..61878135a9df 100644 --- a/drivers/net/can/at91_can.c +++ b/drivers/net/can/at91_can.c @@ -1027,7 +1027,7 @@ static const struct net_device_ops at91_netdev_ops = { .ndo_start_xmit = at91_start_xmit, }; -static int __init at91_can_probe(struct platform_device *pdev) +static int __devinit at91_can_probe(struct platform_device *pdev) { struct net_device *dev; struct at91_priv *priv;