Skip to content

Commit

Permalink
ARM: at91: set i2c_board_info.type to "ds1339" directly
Browse files Browse the repository at this point in the history
The single element of the cpu9krea_i2c_devices array (of type struct
i2c_board_info) has its "type" member set twice. First to "rtc-ds1307"
(through the I2C_BOARD_INFO macro) and then directly to "ds1339". Just
set it (once and) directly to "ds1339" instead.

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
  • Loading branch information
Paul Bolle authored and Nicolas Ferre committed Jul 2, 2012
1 parent b4084bc commit c1cb59f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/arm/mach-at91/board-cpu9krea.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,7 @@ static struct gpio_led cpu9krea_leds[] = {

static struct i2c_board_info __initdata cpu9krea_i2c_devices[] = {
{
I2C_BOARD_INFO("rtc-ds1307", 0x68),
.type = "ds1339",
I2C_BOARD_INFO("ds1339", 0x68),
},
};

Expand Down

0 comments on commit c1cb59f

Please sign in to comment.