]> Pileus Git - ~andy/linux/blobdiff - drivers/net/can/sja1000/peak_pci.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rkuo/linux...
[~andy/linux] / drivers / net / can / sja1000 / peak_pci.c
index d1e7f1006ddd60b1531703d2602f9ca405e9b786..6b6f0ad75090c4ea463ae49b8e2041dbdaca55df 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 */