Rename platform_gpio_init to be SoC specific, and make it static as it's

only called from this file.
This commit is contained in:
Andrew Turner 2014-05-10 20:26:49 +00:00
parent b8821f8415
commit 3664cbc0f0

View File

@ -96,7 +96,7 @@ struct gpio_ctrl_entry {
};
int rk30_gpios_prop_handle(phandle_t ctrl, pcell_t *gpios, int len);
int platform_gpio_init(void);
static int rk30_gpio_init(void);
struct gpio_ctrl_entry gpio_controllers[] = {
{ "rockchip,rk30xx-gpio", &rk30_gpios_prop_handle },
@ -509,7 +509,7 @@ rk30_gpio_attach(device_t dev)
rk30_gpio_sc = sc;
platform_gpio_init();
rk30_gpio_init();
return (bus_generic_attach(dev));
@ -619,8 +619,8 @@ rk30_gpios_prop_handle(phandle_t ctrl, pcell_t *gpios, int len)
#define MAX_PINS_PER_NODE 5
#define GPIOS_PROP_CELLS 4
int
platform_gpio_init(void)
static int
rk30_gpio_init(void)
{
phandle_t child, parent, root, ctrl;
pcell_t gpios[MAX_PINS_PER_NODE * GPIOS_PROP_CELLS];