can: sja1000: use common prefix for all sja1000 defines
[pandora-kernel.git] / drivers / net / can / sja1000 / peak_pci.c
index d1e7f10..6b6f0ad 100644 (file)
@@ -402,7 +402,7 @@ static void peak_pciec_write_reg(const struct sja1000_priv *priv,
        int c = (priv->reg_base - card->reg_base) / PEAK_PCI_CHAN_SIZE;
 
        /* sja1000 register changes control the leds state */
-       if (port == REG_MOD)
+       if (port == SJA1000_MOD)
                switch (val) {
                case MOD_RM:
                        /* Reset Mode: set led on */