mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
dsa: Remove master_dev from switch structure
The switch drivers only use the master_dev member for dev_info() messages. Now that the device is passed to the old style probe, and new style drivers are probed as true linux drivers, this is no longer needed. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
52638f71fc
commit
c33063d6a0
4 changed files with 5 additions and 7 deletions
|
@ -120,6 +120,8 @@ struct dsa_switch_tree {
|
|||
};
|
||||
|
||||
struct dsa_switch {
|
||||
struct device *dev;
|
||||
|
||||
/*
|
||||
* Parent switch tree, and switch index.
|
||||
*/
|
||||
|
@ -142,11 +144,6 @@ struct dsa_switch {
|
|||
*/
|
||||
struct dsa_switch_driver *drv;
|
||||
|
||||
/*
|
||||
* Reference to host device to use.
|
||||
*/
|
||||
struct device *master_dev;
|
||||
|
||||
#ifdef CONFIG_NET_DSA_HWMON
|
||||
/*
|
||||
* Hardware monitoring information
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue