svn commit: r265853 - head/sys/arm/rockchip
Andrew Turner
andrew at FreeBSD.org
Sat May 10 20:26:49 UTC 2014
Author: andrew
Date: Sat May 10 20:26:49 2014
New Revision: 265853
URL: http://svnweb.freebsd.org/changeset/base/265853
Log:
Rename platform_gpio_init to be SoC specific, and make it static as it's
only called from this file.
Modified:
head/sys/arm/rockchip/rk30xx_gpio.c
Modified: head/sys/arm/rockchip/rk30xx_gpio.c
==============================================================================
--- head/sys/arm/rockchip/rk30xx_gpio.c Sat May 10 20:03:03 2014 (r265852)
+++ head/sys/arm/rockchip/rk30xx_gpio.c Sat May 10 20:26:49 2014 (r265853)
@@ -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, p
#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];
More information about the svn-src-head
mailing list