Message ID | 172588984.DhoE4BmVdc@amdc1032 |
---|---|
State | Accepted, archived |
Delegated to: | David Miller |
Headers | show |
From: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> Date: Mon, 30 Sep 2013 15:18:27 +0200 > __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 <b.zolnierkie@samsung.com> > Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/net/ethernet/moxa/moxart_ether.c b/drivers/net/ethernet/moxa/moxart_ether.c index 83c2091..bd1a2d2 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 = {