diff options
author | Andrew Lunn <andrew@lunn.ch> | 2019-04-27 20:56:23 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-04-30 23:15:35 -0400 |
commit | 93e86b3bc842c159a60e6987444bf3952adcd4db (patch) | |
tree | 8eaf6bda037dcc454785d16414cecbdcf069b335 /include/net/dsa.h | |
parent | 2f8e7ece4a624b07e4ff3846adbf6484ee632f59 (diff) |
net: dsa: Remove legacy probing support
Now that all drivers can be probed using more traditional methods,
remove the legacy probe code.
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/dsa.h')
-rw-r--r-- | include/net/dsa.h | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h index 1e6b4efc80b9..18db7b8e7a8e 100644 --- a/include/net/dsa.h +++ b/include/net/dsa.h | |||
@@ -318,15 +318,6 @@ static inline bool dsa_port_is_vlan_filtering(const struct dsa_port *dp) | |||
318 | typedef int dsa_fdb_dump_cb_t(const unsigned char *addr, u16 vid, | 318 | typedef int dsa_fdb_dump_cb_t(const unsigned char *addr, u16 vid, |
319 | bool is_static, void *data); | 319 | bool is_static, void *data); |
320 | struct dsa_switch_ops { | 320 | struct dsa_switch_ops { |
321 | #if IS_ENABLED(CONFIG_NET_DSA_LEGACY) | ||
322 | /* | ||
323 | * Legacy probing. | ||
324 | */ | ||
325 | const char *(*probe)(struct device *dsa_dev, | ||
326 | struct device *host_dev, int sw_addr, | ||
327 | void **priv); | ||
328 | #endif | ||
329 | |||
330 | enum dsa_tag_protocol (*get_tag_protocol)(struct dsa_switch *ds, | 321 | enum dsa_tag_protocol (*get_tag_protocol)(struct dsa_switch *ds, |
331 | int port); | 322 | int port); |
332 | 323 | ||
@@ -516,20 +507,6 @@ struct dsa_switch_driver { | |||
516 | const struct dsa_switch_ops *ops; | 507 | const struct dsa_switch_ops *ops; |
517 | }; | 508 | }; |
518 | 509 | ||
519 | #if IS_ENABLED(CONFIG_NET_DSA_LEGACY) | ||
520 | /* Legacy driver registration */ | ||
521 | void register_switch_driver(struct dsa_switch_driver *type); | ||
522 | void unregister_switch_driver(struct dsa_switch_driver *type); | ||
523 | struct mii_bus *dsa_host_dev_to_mii_bus(struct device *dev); | ||
524 | |||
525 | #else | ||
526 | static inline void register_switch_driver(struct dsa_switch_driver *type) { } | ||
527 | static inline void unregister_switch_driver(struct dsa_switch_driver *type) { } | ||
528 | static inline struct mii_bus *dsa_host_dev_to_mii_bus(struct device *dev) | ||
529 | { | ||
530 | return NULL; | ||
531 | } | ||
532 | #endif | ||
533 | struct net_device *dsa_dev_to_net_device(struct device *dev); | 510 | struct net_device *dsa_dev_to_net_device(struct device *dev); |
534 | 511 | ||
535 | /* Keep inline for faster access in hot path */ | 512 | /* Keep inline for faster access in hot path */ |