diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-16 15:57:37 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-16 15:57:37 -0400 |
commit | 6fd03301d76bc439382710e449f58efbb233df1b (patch) | |
tree | 3c8a3217aed67319683ffc1debccdb5b3245b16c /drivers/net/xen-netfront.c | |
parent | cd5232bd6be2d215a800f3d88c287ca791debfbe (diff) | |
parent | e4792aa30f9d33584d7192685ed149cc5fee737f (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6: (64 commits)
debugfs: use specified mode to possibly mark files read/write only
debugfs: Fix terminology inconsistency of dir name to mount debugfs filesystem.
xen: remove driver_data direct access of struct device from more drivers
usb: gadget: at91_udc: remove driver_data direct access of struct device
uml: remove driver_data direct access of struct device
block/ps3: remove driver_data direct access of struct device
s390: remove driver_data direct access of struct device
parport: remove driver_data direct access of struct device
parisc: remove driver_data direct access of struct device
of_serial: remove driver_data direct access of struct device
mips: remove driver_data direct access of struct device
ipmi: remove driver_data direct access of struct device
infiniband: ehca: remove driver_data direct access of struct device
ibmvscsi: gadget: at91_udc: remove driver_data direct access of struct device
hvcs: remove driver_data direct access of struct device
xen block: remove driver_data direct access of struct device
thermal: remove driver_data direct access of struct device
scsi: remove driver_data direct access of struct device
pcmcia: remove driver_data direct access of struct device
PCIE: remove driver_data direct access of struct device
...
Manually fix up trivial conflicts due to different direct driver_data
direct access fixups in drivers/block/{ps3disk.c,ps3vram.c}
Diffstat (limited to 'drivers/net/xen-netfront.c')
-rw-r--r-- | drivers/net/xen-netfront.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/xen-netfront.c b/drivers/net/xen-netfront.c index f67325387902..8d88daeed0c6 100644 --- a/drivers/net/xen-netfront.c +++ b/drivers/net/xen-netfront.c | |||
@@ -1212,7 +1212,7 @@ static int __devinit netfront_probe(struct xenbus_device *dev, | |||
1212 | } | 1212 | } |
1213 | 1213 | ||
1214 | info = netdev_priv(netdev); | 1214 | info = netdev_priv(netdev); |
1215 | dev->dev.driver_data = info; | 1215 | dev_set_drvdata(&dev->dev, info); |
1216 | 1216 | ||
1217 | err = register_netdev(info->netdev); | 1217 | err = register_netdev(info->netdev); |
1218 | if (err) { | 1218 | if (err) { |
@@ -1233,7 +1233,7 @@ static int __devinit netfront_probe(struct xenbus_device *dev, | |||
1233 | 1233 | ||
1234 | fail: | 1234 | fail: |
1235 | free_netdev(netdev); | 1235 | free_netdev(netdev); |
1236 | dev->dev.driver_data = NULL; | 1236 | dev_set_drvdata(&dev->dev, NULL); |
1237 | return err; | 1237 | return err; |
1238 | } | 1238 | } |
1239 | 1239 | ||
@@ -1275,7 +1275,7 @@ static void xennet_disconnect_backend(struct netfront_info *info) | |||
1275 | */ | 1275 | */ |
1276 | static int netfront_resume(struct xenbus_device *dev) | 1276 | static int netfront_resume(struct xenbus_device *dev) |
1277 | { | 1277 | { |
1278 | struct netfront_info *info = dev->dev.driver_data; | 1278 | struct netfront_info *info = dev_get_drvdata(&dev->dev); |
1279 | 1279 | ||
1280 | dev_dbg(&dev->dev, "%s\n", dev->nodename); | 1280 | dev_dbg(&dev->dev, "%s\n", dev->nodename); |
1281 | 1281 | ||
@@ -1600,7 +1600,7 @@ static int xennet_connect(struct net_device *dev) | |||
1600 | static void backend_changed(struct xenbus_device *dev, | 1600 | static void backend_changed(struct xenbus_device *dev, |
1601 | enum xenbus_state backend_state) | 1601 | enum xenbus_state backend_state) |
1602 | { | 1602 | { |
1603 | struct netfront_info *np = dev->dev.driver_data; | 1603 | struct netfront_info *np = dev_get_drvdata(&dev->dev); |
1604 | struct net_device *netdev = np->netdev; | 1604 | struct net_device *netdev = np->netdev; |
1605 | 1605 | ||
1606 | dev_dbg(&dev->dev, "%s\n", xenbus_strstate(backend_state)); | 1606 | dev_dbg(&dev->dev, "%s\n", xenbus_strstate(backend_state)); |
@@ -1774,7 +1774,7 @@ static struct xenbus_device_id netfront_ids[] = { | |||
1774 | 1774 | ||
1775 | static int __devexit xennet_remove(struct xenbus_device *dev) | 1775 | static int __devexit xennet_remove(struct xenbus_device *dev) |
1776 | { | 1776 | { |
1777 | struct netfront_info *info = dev->dev.driver_data; | 1777 | struct netfront_info *info = dev_get_drvdata(&dev->dev); |
1778 | 1778 | ||
1779 | dev_dbg(&dev->dev, "%s\n", dev->nodename); | 1779 | dev_dbg(&dev->dev, "%s\n", dev->nodename); |
1780 | 1780 | ||