net: dsa: b53: Initialize ds->ops in b53_switch_alloc
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 26 Aug 2016 19:18:29 +0000 (12:18 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Aug 2016 20:15:47 +0000 (13:15 -0700)
commit485ebd618e9e34769c4e046404ddf5f26487d807
treec2579002c66bd4917f5c58705fe24a3d865e6ab0
parented35ca994f97211abdbc87063d8869ead99b508c
net: dsa: b53: Initialize ds->ops in b53_switch_alloc

In order to allow drivers to override specific dsa_switch_driver
callbacks, initialize ds->ops to b53_switch_ops earlier, which avoids
having to expose this structure to glue drivers.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/b53/b53_common.c