Skip to content

Commit

Permalink
ARM: dove: fix missing __init section of dove_mpp_gpio_mode
Browse files Browse the repository at this point in the history
Legacy dove_mpp_gpio_mode calls orion_gpio_set_valid which is in
__init section. Offending function is not, so this causes a section
mismatch. To fix the mismatch, also move dove_mpp_gpio_mode to
__init section.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
  • Loading branch information
Sebastian Hesselbarth authored and Jason Cooper committed Jul 25, 2013
1 parent 3b2f64d commit 2746a7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-dove/mpp.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ static const struct dove_mpp_grp dove_mpp_grp[] = {

/* Enable gpio for a range of pins. mode should be a combination of
GPIO_OUTPUT_OK | GPIO_INPUT_OK */
static void dove_mpp_gpio_mode(int start, int end, int gpio_mode)
static void __init dove_mpp_gpio_mode(int start, int end, int gpio_mode)
{
int i;

Expand Down

0 comments on commit 2746a7c

Please sign in to comment.