diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2017-01-26 10:45:51 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-26 15:43:52 -0500 |
commit | 55ed0ce0898e15fec30d2ca2a563d7934b082375 (patch) | |
tree | 16e0eb4137314defd4b06242a4ef47f315232b3c /include/net | |
parent | 80c8eae6ee66b52e1304c9ffd02b4472d5976608 (diff) |
net: dsa: Pass device pointer to dsa_register_switch
In preparation for allowing dsa_register_switch() to be supplied with
device/platform data, pass down a struct device pointer instead of a
struct device_node.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/dsa.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h index 08b340403927..92fd795e9573 100644 --- a/include/net/dsa.h +++ b/include/net/dsa.h @@ -387,7 +387,7 @@ static inline bool dsa_uses_tagged_protocol(struct dsa_switch_tree *dst) } void dsa_unregister_switch(struct dsa_switch *ds); -int dsa_register_switch(struct dsa_switch *ds, struct device_node *np); +int dsa_register_switch(struct dsa_switch *ds, struct device *dev); #ifdef CONFIG_PM_SLEEP int dsa_switch_suspend(struct dsa_switch *ds); int dsa_switch_resume(struct dsa_switch *ds); |