Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 67543
b: refs/heads/master
c: b707f51
h: refs/heads/master
i:
  67541: 961e0c7
  67539: d394b4b
  67535: a7587d7
v: v3
  • Loading branch information
Stephen Rothwell authored and Paul Mackerras committed Oct 11, 2007
1 parent 4008b25 commit 6f1a51d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 17 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 745e1027751acbc1f14f8bbef378b491242b9c83
refs/heads/master: b707f517d2c72c6b340ba762ed8a7de2b22935e9
11 changes: 0 additions & 11 deletions trunk/arch/powerpc/kernel/vio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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,
};

/**
Expand Down
5 changes: 0 additions & 5 deletions trunk/include/asm-powerpc/vio.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 6f1a51d

Please sign in to comment.