net: dsa: move fixed link registration helpers
The new bindings (dsa2.c) and the old bindings (legacy.c) share two helpers dsa_cpu_dsa_setup and dsa_cpu_dsa_destroy, used to register or deregister a fixed PHY if a given port has a corresponding device node. Unclutter the code by moving them into two new port.c helpers, dsa_port_fixed_link_register_of and dsa_port_fixed_link_(un)register_of. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
952c5719aa
commit
57ab1ca215
@@ -93,8 +93,6 @@ struct dsa_slave_priv {
|
||||
};
|
||||
|
||||
/* dsa.c */
|
||||
int dsa_cpu_dsa_setup(struct dsa_port *port);
|
||||
void dsa_cpu_dsa_destroy(struct dsa_port *dport);
|
||||
const struct dsa_device_ops *dsa_resolve_tag_protocol(int tag_protocol);
|
||||
bool dsa_schedule_work(struct work_struct *work);
|
||||
|
||||
@@ -159,6 +157,9 @@ int dsa_port_vlan_add(struct dsa_port *dp,
|
||||
struct switchdev_trans *trans);
|
||||
int dsa_port_vlan_del(struct dsa_port *dp,
|
||||
const struct switchdev_obj_port_vlan *vlan);
|
||||
int dsa_port_fixed_link_register_of(struct dsa_port *dp);
|
||||
void dsa_port_fixed_link_unregister_of(struct dsa_port *dp);
|
||||
|
||||
/* slave.c */
|
||||
extern const struct dsa_device_ops notag_netdev_ops;
|
||||
void dsa_slave_mii_bus_init(struct dsa_switch *ds);
|
||||
|
Reference in New Issue
Block a user