diff options
author | Manohar Vanga <manohar.vanga@cern.ch> | 2011-09-26 09:27:17 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-10-17 22:43:13 (GMT) |
commit | a916a391d3e19593a104a8c3c4779a3084f1ca5b (patch) | |
tree | 916dee131f0cb4914c73415a58b9652ee8881136 /drivers/staging/vme/vme.h | |
parent | 5d6abf379d73efe390488e8edba972af4e93cb1c (diff) | |
download | linux-a916a391d3e19593a104a8c3c4779a3084f1ca5b.tar.xz |
staging: vme: get rid of struct vme_device_id and slots
Previously, the device-driver matching mechanism depended on the
vme_device_id structure due to the need for a bind table per driver.
This method of matching is no longer used so this patch merges the
fields of struct vme_device_id into struct vme_dev. Since this also
renders the slot field meaningless, it has also been removed in this
patch.
Signed-off-by: Manohar Vanga <manohar.vanga@cern.ch>
Cc: Martyn Welch <martyn.welch@ge.com>
Reviewed-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/vme/vme.h')
-rw-r--r-- | drivers/staging/vme/vme.h | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/staging/vme/vme.h b/drivers/staging/vme/vme.h index 95224d7..e3828ba 100644 --- a/drivers/staging/vme/vme.h +++ b/drivers/staging/vme/vme.h @@ -96,18 +96,6 @@ extern struct bus_type vme_bus_type; #define VME_SLOT_ALL -2 /** - * VME device identifier structure - * @num: The device ID (ranges from 0 to N-1 for N devices) - * @bus: The bus ID of the bus the device is on - * @slot: The slot this device is plugged into - */ -struct vme_device_id { - int num; - int bus; - int slot; -}; - -/** * Structure representing a VME device * @id: The ID of the device (currently the bus and slot number) * @bridge: Pointer to the bridge device this device is on @@ -116,7 +104,7 @@ struct vme_device_id { * @bridge_list: List of devices (per bridge) */ struct vme_dev { - struct vme_device_id id; + int num; struct vme_bridge *bridge; struct device dev; struct list_head drv_list; |