clk: samsung: Fix double add of syscore ops after driver rebind
[deliverable/linux.git] / include / linux / of_net.h
CommitLineData
4b6ba8aa
DD
1/*
2 * OF helpers for network devices.
3 *
4 * This file is released under the GPLv2
5 */
6
7#ifndef __LINUX_OF_NET_H
8#define __LINUX_OF_NET_H
9
10#ifdef CONFIG_OF_NET
11#include <linux/of.h>
7e0bdf15 12extern int of_get_phy_mode(struct device_node *np);
4b6ba8aa 13extern const void *of_get_mac_address(struct device_node *np);
65b3841b 14#else
7e0bdf15 15static inline int of_get_phy_mode(struct device_node *np)
65b3841b
GR
16{
17 return -ENODEV;
18}
19
20static inline const void *of_get_mac_address(struct device_node *np)
21{
22 return NULL;
23}
4b6ba8aa
DD
24#endif
25
26#endif /* __LINUX_OF_NET_H */
This page took 0.382697 seconds and 5 git commands to generate.