Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 310120
b: refs/heads/master
c: fd6948b
h: refs/heads/master
v: v3
  • Loading branch information
Lee Jones authored and Arnd Bergmann committed Jun 1, 2012
1 parent 2053513 commit ce4ebfb
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 48a4ea626ddfad1c714ac4e3b7049347c22f2aa2
refs/heads/master: fd6948bb2aee1020001d7fd4747160541d69e30f
4 changes: 1 addition & 3 deletions trunk/arch/arm/mach-ux500/board-mop500-uib.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ static void __init __mop500_uib_init(struct uib *uib, const char *why)
/*
* Detect the UIB attached based on the presence or absence of i2c devices.
*/
static int __init mop500_uib_init(void)
int __init mop500_uib_init(void)
{
struct uib *uib = mop500_uib;
struct i2c_adapter *i2c0;
Expand Down Expand Up @@ -131,5 +131,3 @@ static int __init mop500_uib_init(void)

return 0;
}

module_init(mop500_uib_init);
8 changes: 8 additions & 0 deletions trunk/arch/arm/mach-ux500/board-mop500.c
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,8 @@ static void __init mop500_init_machine(void)

/* This board has full regulator constraints */
regulator_has_full_constraints();

mop500_uib_init();
}

static void __init snowball_init_machine(void)
Expand Down Expand Up @@ -780,6 +782,8 @@ static void __init hrefv60_init_machine(void)

/* This board has full regulator constraints */
regulator_has_full_constraints();

mop500_uib_init();
}

MACHINE_START(U8500, "ST-Ericsson MOP500 platform")
Expand Down Expand Up @@ -883,6 +887,8 @@ static void __init u8500_init_machine(void)
i2c_register_board_info(2, mop500_i2c2_devices,
ARRAY_SIZE(mop500_i2c2_devices));

mop500_uib_init();

} else if (of_machine_is_compatible("calaosystems,snowball-a9500")) {
/*
* Devices to be DT:ed:
Expand Down Expand Up @@ -913,6 +919,8 @@ static void __init u8500_init_machine(void)
i2c_register_board_info(0, mop500_i2c0_devices, i2c0_devs);
i2c_register_board_info(2, mop500_i2c2_devices,
ARRAY_SIZE(mop500_i2c2_devices));

mop500_uib_init();
}
mop500_i2c_init(parent);

Expand Down
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-ux500/board-mop500.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ void __init mop500_pinmaps_init(void);
void __init snowball_pinmaps_init(void);
void __init hrefv60_pinmaps_init(void);

int __init mop500_uib_init(void);
void mop500_uib_i2c_add(int busnum, struct i2c_board_info *info,
unsigned n);

Expand Down

0 comments on commit ce4ebfb

Please sign in to comment.