Skip to content

Commit

Permalink
[ARM] pxa/csb726: adjust duplicate structure field initialization
Browse files Browse the repository at this point in the history
Currently the irq_type field of the csb726_lan_config structure is
initialized twice.  The value in the first case,
SMSC911X_IRQ_POLARITY_ACTIVE_LOW, is normally stored in the irq_polarity
field, so I have renamed the field in the first initialization to that.

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
  • Loading branch information
Julia Lawall authored and Eric Miao committed Oct 12, 2009
1 parent 1612913 commit c639ef4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-pxa/csb726.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ static struct resource csb726_lan_resources[] = {
};

struct smsc911x_platform_config csb726_lan_config = {
.irq_type = SMSC911X_IRQ_POLARITY_ACTIVE_LOW,
.irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_LOW,
.irq_type = SMSC911X_IRQ_TYPE_PUSH_PULL,
.flags = SMSC911X_USE_32BIT,
.phy_interface = PHY_INTERFACE_MODE_MII,
Expand Down

0 comments on commit c639ef4

Please sign in to comment.