# HG changeset patch # User asl # Date 1187340537 0 # Node ID ba2923d2586fd6b1b0531783207f6873b149e15f # Parent 05280737f180c3517178073bb0b61209008ed7ac * src/can_lpc2xxx.c: The definition of "info" is missing when only one CAN channel is configured. diff --git a/packages/devs/can/arm/lpc2xxx/current/ChangeLog b/packages/devs/can/arm/lpc2xxx/current/ChangeLog --- a/packages/devs/can/arm/lpc2xxx/current/ChangeLog +++ b/packages/devs/can/arm/lpc2xxx/current/ChangeLog @@ -1,3 +1,8 @@ +2007-08-17 Hans Rosenfeld + + * src/can_lpc2xxx.c: The definition of "info" is missing when only + one CAN channel is configured. + 2007-08-17 Uwe Kindler * include/can_lpc2xxx_baudrates.h: Removed all prefixed zeros from diff --git a/packages/devs/can/arm/lpc2xxx/current/src/can_lpc2xxx.c b/packages/devs/can/arm/lpc2xxx/current/src/can_lpc2xxx.c --- a/packages/devs/can/arm/lpc2xxx/current/src/can_lpc2xxx.c +++ b/packages/devs/can/arm/lpc2xxx/current/src/can_lpc2xxx.c @@ -928,7 +928,7 @@ static bool lpc2xxx_can_set_baud(can_cha static Cyg_ErrNo lpc2xxx_can_lookup(struct cyg_devtab_entry** tab, struct cyg_devtab_entry* sub_tab, const char* name) { can_channel* chan = (can_channel*) (*tab)->priv; - CAN_DECLARE_INFO(chan); + lpc2xxx_can_info_t *info = (lpc2xxx_can_info_t *)chan->dev_priv; cyg_uint32 regval; chan->callbacks->can_init(chan);