diff options
author | David Vrabel <david.vrabel@citrix.com> | 2014-09-08 12:30:41 -0400 |
---|---|---|
committer | David Vrabel <david.vrabel@citrix.com> | 2014-10-06 05:27:57 -0400 |
commit | 95afae481414cbdb0567bf82d5e5077c3ac9da20 (patch) | |
tree | 653ae2fae22966dd2a634ac4865ead3c6937eee9 /drivers/scsi | |
parent | 305559f16538708b603ceeb317ebaed9c4da9ce9 (diff) |
xen: remove DEFINE_XENBUS_DRIVER() macro
The DEFINE_XENBUS_DRIVER() macro looks a bit weird and causes sparse
errors.
Replace the uses with standard structure definitions instead. This is
similar to pci and usb device registration.
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/xen-scsifront.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/scsi/xen-scsifront.c b/drivers/scsi/xen-scsifront.c index cc14c8ddd369..34199d206ba6 100644 --- a/drivers/scsi/xen-scsifront.c +++ b/drivers/scsi/xen-scsifront.c | |||
@@ -998,11 +998,12 @@ static const struct xenbus_device_id scsifront_ids[] = { | |||
998 | { "" } | 998 | { "" } |
999 | }; | 999 | }; |
1000 | 1000 | ||
1001 | static DEFINE_XENBUS_DRIVER(scsifront, , | 1001 | static struct xenbus_driver scsifront_driver = { |
1002 | .ids = scsifront_ids, | ||
1002 | .probe = scsifront_probe, | 1003 | .probe = scsifront_probe, |
1003 | .remove = scsifront_remove, | 1004 | .remove = scsifront_remove, |
1004 | .otherend_changed = scsifront_backend_changed, | 1005 | .otherend_changed = scsifront_backend_changed, |
1005 | ); | 1006 | }; |
1006 | 1007 | ||
1007 | static int __init scsifront_init(void) | 1008 | static int __init scsifront_init(void) |
1008 | { | 1009 | { |