net: mscc: ocelot: filter out ocelot SoC specific PCS config from common path
[linux-2.6-block.git] / drivers / net / ethernet / mscc / ocelot_regs.c
index e59977d204005321a38268764759add03a7aff5b..b88b5899b22736fdc44f4dc7da04453282012d95 100644 (file)
@@ -423,7 +423,7 @@ static void ocelot_pll5_init(struct ocelot *ocelot)
                     HSIO_PLL5G_CFG2_AMPC_SEL(0x10));
 }
 
-int ocelot_chip_init(struct ocelot *ocelot)
+int ocelot_chip_init(struct ocelot *ocelot, const struct ocelot_ops *ops)
 {
        int ret;
 
@@ -431,6 +431,7 @@ int ocelot_chip_init(struct ocelot *ocelot)
        ocelot->stats_layout = ocelot_stats_layout;
        ocelot->num_stats = ARRAY_SIZE(ocelot_stats_layout);
        ocelot->shared_queue_sz = 224 * 1024;
+       ocelot->ops = ops;
 
        ret = ocelot_regfields_init(ocelot, ocelot_regfields);
        if (ret)