Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 May 2014 20:31:05 +0000 (UTC)
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r265854 - head/sys/arm/mv
Message-ID:  <201405102031.s4AKV5a9026844@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: andrew
Date: Sat May 10 20:31:05 2014
New Revision: 265854
URL: http://svnweb.freebsd.org/changeset/base/265854

Log:
  Rename platform_gpio_init to be platform specific, and make it static as
  it's only used from this file.

Modified:
  head/sys/arm/mv/gpio.c
  head/sys/arm/mv/mvvar.h

Modified: head/sys/arm/mv/gpio.c
==============================================================================
--- head/sys/arm/mv/gpio.c	Sat May 10 20:26:49 2014	(r265853)
+++ head/sys/arm/mv/gpio.c	Sat May 10 20:31:05 2014	(r265854)
@@ -74,6 +74,7 @@ static uint32_t	gpio_setup[MV_GPIO_MAX_N
 static int	mv_gpio_probe(device_t);
 static int	mv_gpio_attach(device_t);
 static int	mv_gpio_intr(void *);
+static int	mv_gpio_init(void);
 
 static void	mv_gpio_intr_handler(int pin);
 static uint32_t	mv_gpio_reg_read(uint32_t reg);
@@ -201,7 +202,7 @@ mv_gpio_attach(device_t dev)
 		}
 	}
 
-	return (platform_gpio_init());
+	return (mv_gpio_init());
 }
 
 static int
@@ -604,8 +605,8 @@ mv_handle_gpios_prop(phandle_t ctrl, pce
 
 #define MAX_PINS_PER_NODE	5
 #define GPIOS_PROP_CELLS	4
-int
-platform_gpio_init(void)
+static int
+mv_gpio_init(void)
 {
 	phandle_t child, parent, root, ctrl;
 	pcell_t gpios[MAX_PINS_PER_NODE * GPIOS_PROP_CELLS];

Modified: head/sys/arm/mv/mvvar.h
==============================================================================
--- head/sys/arm/mv/mvvar.h	Sat May 10 20:26:49 2014	(r265853)
+++ head/sys/arm/mv/mvvar.h	Sat May 10 20:31:05 2014	(r265854)
@@ -82,7 +82,6 @@ void mv_gpio_intr_mask(int pin);
 void mv_gpio_intr_unmask(int pin);
 void mv_gpio_out(uint32_t pin, uint8_t val, uint8_t enable);
 uint8_t mv_gpio_in(uint32_t pin);
-int platform_gpio_init(void);
 
 int soc_decode_win(void);
 void soc_id(uint32_t *dev, uint32_t *rev);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405102031.s4AKV5a9026844>