Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 129eef21 authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Marc Kleine-Budde
Browse files

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: default avatarThomas Gleixner <tglx@linutronix.de>
Tested-by: default avatarAlexander Stein <alexander.stein@systec-electronic.com>
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent a64d90fd
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -132,6 +132,8 @@ static int c_can_pci_probe(struct pci_dev *pdev,
		goto out_free_c_can;
		goto out_free_c_can;
	}
	}


	priv->type = c_can_pci_data->type;

	/* Configure access to registers */
	/* Configure access to registers */
	switch (c_can_pci_data->reg_align) {
	switch (c_can_pci_data->reg_align) {
	case C_CAN_REG_ALIGN_32:
	case C_CAN_REG_ALIGN_32: