From: Thomas Gleixner Subject: [patch V2 01/21] can: c_can_pci: Set the type of the IP core Date: Fri, 11 Apr 2014 08:13:10 -0000 Message-ID: <20140411080650.456724604@linutronix.de> References: <20140411080547.845836199@linutronix.de> Return-path: Received: from www.linutronix.de ([62.245.132.108]:52353 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752152AbaDKIM7 (ORCPT ); Fri, 11 Apr 2014 04:12:59 -0400 Content-Disposition: inline; filename=can-c_pci_can-set-type.patch Sender: linux-can-owner@vger.kernel.org List-ID: To: linux-can Cc: Alexander Stein , Oliver Hartkopp , Marc Kleine-Budde , Wolfgang Grandegger , Mark 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 --- drivers/net/can/c_can/c_can_pci.c | 2 ++ 1 file changed, 2 insertions(+) Index: linux-2.6/drivers/net/can/c_can/c_can_pci.c =================================================================== --- linux-2.6.orig/drivers/net/can/c_can/c_can_pci.c +++ linux-2.6/drivers/net/can/c_can/c_can_pci.c @@ -132,6 +132,8 @@ static int c_can_pci_probe(struct pci_de 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: