aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/can/c_can/c_can_pci.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2014-04-11 08:13:10 +0000
committerMarc Kleine-Budde <mkl@pengutronix.de>2014-04-24 22:08:55 +0200
commit129eef2184218f4603f406945552ff4e58b05cf1 (patch)
treeacf54a81630f6462c45cb9ae4f696e1898f6ae92 /drivers/net/can/c_can/c_can_pci.c
parentnetfilter: Fix warning in nfnetlink_receive(). (diff)
downloadlinux-dev-129eef2184218f4603f406945552ff4e58b05cf1.tar.xz
linux-dev-129eef2184218f4603f406945552ff4e58b05cf1.zip
can: c_can_pci: Set the type of the IP core
All type checks in c_can.c are != BOSCH_D_CAN so nobody noticed so far that the pci code does not update the type information. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Tested-by: Alexander Stein <alexander.stein@systec-electronic.com> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/can/c_can/c_can_pci.c')
-rw-r--r--drivers/net/can/c_can/c_can_pci.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/can/c_can/c_can_pci.c b/drivers/net/can/c_can/c_can_pci.c
index bce0be54c2f5..1b7ff400711a 100644
--- a/drivers/net/can/c_can/c_can_pci.c
+++ b/drivers/net/can/c_can/c_can_pci.c
@@ -132,6 +132,8 @@ static int c_can_pci_probe(struct pci_dev *pdev,
goto out_free_c_can;
}
+ priv->type = c_can_pci_data->type;
+
/* Configure access to registers */
switch (c_can_pci_data->reg_align) {
case C_CAN_REG_ALIGN_32: