Message ID | 1404970545-26508-5-git-send-email-varkabhadram@gmail.com |
---|---|
State | Accepted, archived |
Delegated to: | David Miller |
Headers | show |
On Thu, Jul 10, 2014 at 11:05:42AM +0530, varkabhadram@gmail.com wrote: > From: Varka Bhadram <varkab@cdac.in> > > This patch changes to style of declarattion which follows every driver > > Signed-off-by: Varka Bhadram <varkab@cdac.in> Reviewed-by: Felipe Balbi <balbi@ti.com> > --- > drivers/net/ethernet/ti/cpmac.c | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-) > > diff --git a/drivers/net/ethernet/ti/cpmac.c b/drivers/net/ethernet/ti/cpmac.c > index 9faf669..1520c19 100644 > --- a/drivers/net/ethernet/ti/cpmac.c > +++ b/drivers/net/ethernet/ti/cpmac.c > @@ -1187,9 +1187,11 @@ static int cpmac_remove(struct platform_device *pdev) > } > > static struct platform_driver cpmac_driver = { > - .driver.name = "cpmac", > - .driver.owner = THIS_MODULE, > - .probe = cpmac_probe, > + .driver = { > + .name = "cpmac", > + .owner = THIS_MODULE, > + }, > + .probe = cpmac_probe, > .remove = cpmac_remove, > }; > > -- > 1.7.9.5 >
diff --git a/drivers/net/ethernet/ti/cpmac.c b/drivers/net/ethernet/ti/cpmac.c index 9faf669..1520c19 100644 --- a/drivers/net/ethernet/ti/cpmac.c +++ b/drivers/net/ethernet/ti/cpmac.c @@ -1187,9 +1187,11 @@ static int cpmac_remove(struct platform_device *pdev) } static struct platform_driver cpmac_driver = { - .driver.name = "cpmac", - .driver.owner = THIS_MODULE, - .probe = cpmac_probe, + .driver = { + .name = "cpmac", + .owner = THIS_MODULE, + }, + .probe = cpmac_probe, .remove = cpmac_remove, };