diff options
Diffstat (limited to 'drivers/net/can/sja1000')
-rw-r--r-- | drivers/net/can/sja1000/sja1000_of_platform.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/can/sja1000/sja1000_of_platform.c b/drivers/net/can/sja1000/sja1000_of_platform.c index 9dd076a626a..dc5f20cdf93 100644 --- a/drivers/net/can/sja1000/sja1000_of_platform.c +++ b/drivers/net/can/sja1000/sja1000_of_platform.c | |||
@@ -72,7 +72,7 @@ static int __devexit sja1000_ofp_remove(struct of_device *ofdev) | |||
72 | { | 72 | { |
73 | struct net_device *dev = dev_get_drvdata(&ofdev->dev); | 73 | struct net_device *dev = dev_get_drvdata(&ofdev->dev); |
74 | struct sja1000_priv *priv = netdev_priv(dev); | 74 | struct sja1000_priv *priv = netdev_priv(dev); |
75 | struct device_node *np = ofdev->node; | 75 | struct device_node *np = ofdev->dev.of_node; |
76 | struct resource res; | 76 | struct resource res; |
77 | 77 | ||
78 | dev_set_drvdata(&ofdev->dev, NULL); | 78 | dev_set_drvdata(&ofdev->dev, NULL); |
@@ -91,7 +91,7 @@ static int __devexit sja1000_ofp_remove(struct of_device *ofdev) | |||
91 | static int __devinit sja1000_ofp_probe(struct of_device *ofdev, | 91 | static int __devinit sja1000_ofp_probe(struct of_device *ofdev, |
92 | const struct of_device_id *id) | 92 | const struct of_device_id *id) |
93 | { | 93 | { |
94 | struct device_node *np = ofdev->node; | 94 | struct device_node *np = ofdev->dev.of_node; |
95 | struct net_device *dev; | 95 | struct net_device *dev; |
96 | struct sja1000_priv *priv; | 96 | struct sja1000_priv *priv; |
97 | struct resource res; | 97 | struct resource res; |