From: Bartlomiej Zolnierkiewicz Date: Mon, 30 Sep 2013 13:18:27 +0000 (+0200) Subject: ethernet: moxa: fix incorrect placement of __initdata tag X-Git-Tag: MMI-PSA29.97-13-9~13518^2~11 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=437a3ae1d0b42197928d52e1108bc2fdc14d23fd;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git ethernet: moxa: fix incorrect placement of __initdata tag __initdata tag should be placed between the variable name and equal sign for the variable to be placed in the intended .init.data section. In this particular case __initdata is incorrect as moxart_mac_driver can be used after the driver gets initialized. Also while at it static-ize moxart_mac_driver. Signed-off-by: Bartlomiej Zolnierkiewicz Signed-off-by: Kyungmin Park Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/moxa/moxart_ether.c b/drivers/net/ethernet/moxa/moxart_ether.c index 83c2091c9c23..bd1a2d2bc2ae 100644 --- a/drivers/net/ethernet/moxa/moxart_ether.c +++ b/drivers/net/ethernet/moxa/moxart_ether.c @@ -543,7 +543,7 @@ static const struct of_device_id moxart_mac_match[] = { { } }; -struct __initdata platform_driver moxart_mac_driver = { +static struct platform_driver moxart_mac_driver = { .probe = moxart_mac_probe, .remove = moxart_remove, .driver = {