drivers: can: kvaser_pci: Fix incorrect RAM context struct type
The can_kvaser_pci_data_##inst type was supposed to be can_kvaser_pci_data and not can_kvaser_pci_config. This got unnoticed because there were no struct members to pre-initialize, and a reference to the struct was stored using a void pointer. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
6acdb1b73a
commit
54513c70d1
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ const struct can_driver_api can_kvaser_pci_driver_api = {
|
|||
can_kvaser_pci_read_reg, can_kvaser_pci_write_reg, \
|
||||
CAN_KVASER_PCI_OCR, CAN_KVASER_PCI_CDR); \
|
||||
\
|
||||
static struct can_kvaser_pci_config can_kvaser_pci_data_##inst; \
|
||||
static struct can_kvaser_pci_data can_kvaser_pci_data_##inst; \
|
||||
\
|
||||
static struct can_sja1000_data can_sja1000_data_##inst = \
|
||||
CAN_SJA1000_DATA_INITIALIZER(&can_kvaser_pci_data_##inst); \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue