dsa: Move gpio reset into switch driver
Resetting the switch is something the driver does, not the framework. So move the parsing of this property into the driver. There are no in kernel users of this property, so moving it does not break anything. There is however a board which will make use of this property making its way into the kernel. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
14c7b3c387
commit
52638f71fc
@@ -16,7 +16,6 @@
|
||||
#include <linux/timer.h>
|
||||
#include <linux/workqueue.h>
|
||||
#include <linux/of.h>
|
||||
#include <linux/of_gpio.h>
|
||||
#include <linux/phy.h>
|
||||
#include <linux/phy_fixed.h>
|
||||
#include <linux/ethtool.h>
|
||||
@@ -65,13 +64,6 @@ struct dsa_chip_data {
|
||||
* NULL if there is only one switch chip.
|
||||
*/
|
||||
s8 *rtable;
|
||||
|
||||
/*
|
||||
* A switch may have a GPIO line tied to its reset pin. Parse
|
||||
* this from the device tree, and use it before performing
|
||||
* switch soft reset.
|
||||
*/
|
||||
struct gpio_desc *reset;
|
||||
};
|
||||
|
||||
struct dsa_platform_data {
|
||||
|
Reference in New Issue
Block a user