From 6f1a51d890749c78c36a5c9e1eeb28d1cef6c34e Mon Sep 17 00:00:00 2001 From: Stephen Rothwell Date: Thu, 11 Oct 2007 14:48:24 +1000 Subject: [PATCH] --- yaml --- r: 67543 b: refs/heads/master c: b707f517d2c72c6b340ba762ed8a7de2b22935e9 h: refs/heads/master i: 67541: 961e0c7ecc81d909ad6b4be97462c6c3ba32a862 67539: d394b4b1318c027712bb0a013c3aa384300e9be7 67535: a7587d744c4f3d96f4e561bbb1bb5aac52e2a007 v: v3 --- [refs] | 2 +- trunk/arch/powerpc/kernel/vio.c | 11 ----------- trunk/include/asm-powerpc/vio.h | 5 ----- 3 files changed, 1 insertion(+), 17 deletions(-) diff --git a/[refs] b/[refs] index ea124f8fddaa..c0b208f0dbe8 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 745e1027751acbc1f14f8bbef378b491242b9c83 +refs/heads/master: b707f517d2c72c6b340ba762ed8a7de2b22935e9 diff --git a/trunk/arch/powerpc/kernel/vio.c b/trunk/arch/powerpc/kernel/vio.c index 1d7b272b3737..fd631d4d1602 100644 --- a/trunk/arch/powerpc/kernel/vio.c +++ b/trunk/arch/powerpc/kernel/vio.c @@ -168,16 +168,6 @@ static int vio_bus_remove(struct device *dev) return 1; } -/* convert from struct device to struct vio_dev and pass to driver. */ -static void vio_bus_shutdown(struct device *dev) -{ - struct vio_dev *viodev = to_vio_dev(dev); - struct vio_driver *viodrv = to_vio_driver(dev->driver); - - if (dev->driver && viodrv->shutdown) - viodrv->shutdown(viodev); -} - /** * vio_register_driver: - Register a new vio driver * @drv: The vio_driver structure to be registered. @@ -397,7 +387,6 @@ static struct bus_type vio_bus_type = { .match = vio_bus_match, .probe = vio_bus_probe, .remove = vio_bus_remove, - .shutdown = vio_bus_shutdown, }; /** diff --git a/trunk/include/asm-powerpc/vio.h b/trunk/include/asm-powerpc/vio.h index 598d111e8098..9204c15839c5 100644 --- a/trunk/include/asm-powerpc/vio.h +++ b/trunk/include/asm-powerpc/vio.h @@ -53,17 +53,12 @@ struct vio_dev { }; struct vio_driver { - struct list_head node; const struct vio_device_id *id_table; int (*probe)(struct vio_dev *dev, const struct vio_device_id *id); int (*remove)(struct vio_dev *dev); - void (*shutdown)(struct vio_dev *dev); - unsigned long driver_data; struct device_driver driver; }; -extern struct dma_mapping_ops vio_dma_ops; - extern int vio_register_driver(struct vio_driver *drv); extern void vio_unregister_driver(struct vio_driver *drv);