mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-31 16:38:12 +00:00
4b6ba8aacb
There are two identical implementations of of_get_mac_address(), one each in arch/powerpc/kernel/prom_parse.c and arch/microblaze/kernel/prom_parse.c. Move this function to a new common file of_net.{c,h} and adjust all the callers to include the new header. Signed-off-by: David Daney <ddaney@caviumnetworks.com> [grant.likely@secretlab.ca: protect header with #ifdef] Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
15 lines
282 B
C
15 lines
282 B
C
/*
|
|
* OF helpers for network devices.
|
|
*
|
|
* This file is released under the GPLv2
|
|
*/
|
|
|
|
#ifndef __LINUX_OF_NET_H
|
|
#define __LINUX_OF_NET_H
|
|
|
|
#ifdef CONFIG_OF_NET
|
|
#include <linux/of.h>
|
|
extern const void *of_get_mac_address(struct device_node *np);
|
|
#endif
|
|
|
|
#endif /* __LINUX_OF_NET_H */
|