aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/can/sja1000/ems_pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/can/sja1000/ems_pci.c')
-rw-r--r--drivers/net/can/sja1000/ems_pci.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/can/sja1000/ems_pci.c b/drivers/net/can/sja1000/ems_pci.c
index 36d298da2af6..3752342a678a 100644
--- a/drivers/net/can/sja1000/ems_pci.c
+++ b/drivers/net/can/sja1000/ems_pci.c
@@ -168,12 +168,12 @@ static inline int ems_pci_check_chan(const struct sja1000_priv *priv)
168 unsigned char res; 168 unsigned char res;
169 169
170 /* Make sure SJA1000 is in reset mode */ 170 /* Make sure SJA1000 is in reset mode */
171 priv->write_reg(priv, REG_MOD, 1); 171 priv->write_reg(priv, SJA1000_MOD, 1);
172 172
173 priv->write_reg(priv, REG_CDR, CDR_PELICAN); 173 priv->write_reg(priv, SJA1000_CDR, CDR_PELICAN);
174 174
175 /* read reset-values */ 175 /* read reset-values */
176 res = priv->read_reg(priv, REG_CDR); 176 res = priv->read_reg(priv, SJA1000_CDR);
177 177
178 if (res == CDR_PELICAN) 178 if (res == CDR_PELICAN)
179 return 1; 179 return 1;