9
0
Fork 0

of: make locally used functions static

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2013-03-03 16:54:45 +01:00
parent a51d06d679
commit 14c290dabe
2 changed files with 5 additions and 3 deletions

View File

@ -96,7 +96,7 @@ static void of_bus_default_count_cells(struct device_node *dev,
*sizec = of_n_size_cells(dev);
}
void of_bus_count_cells(struct device_node *dev,
static void of_bus_count_cells(struct device_node *dev,
int *addrc, int *sizec)
{
of_bus_default_count_cells(dev, addrc, sizec);
@ -135,7 +135,7 @@ static void of_alias_add(struct alias_prop *ap, struct device_node *np,
* the global lookup table with the properties. It returns the
* number of alias_prop found, or error code in error case.
*/
void of_alias_scan(void)
static void of_alias_scan(void)
{
struct property *pp;
struct alias_prop *app, *tmp;
@ -814,7 +814,7 @@ static struct device_d *add_of_device(struct device_node *node)
}
EXPORT_SYMBOL(add_of_device);
u64 dt_mem_next_cell(int s, const __be32 **cellp)
static u64 dt_mem_next_cell(int s, const __be32 **cellp)
{
const __be32 *p = *cellp;

View File

@ -143,6 +143,8 @@ int of_device_is_compatible(const struct device_node *device,
int of_machine_is_compatible(const char *compat);
u64 of_translate_address(struct device_node *node, const __be32 *in_addr);
#define OF_ROOT_NODE_SIZE_CELLS_DEFAULT 1
#define OF_ROOT_NODE_ADDR_CELLS_DEFAULT 1