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/net/xen-netback/xenbus.c | |
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/net/xen-netback/xenbus.c')
-rw-r--r-- | drivers/net/xen-netback/xenbus.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/net/xen-netback/xenbus.c b/drivers/net/xen-netback/xenbus.c index 9c47b897b6d2..8079c31ac5e6 100644 --- a/drivers/net/xen-netback/xenbus.c +++ b/drivers/net/xen-netback/xenbus.c | |||
@@ -937,22 +937,18 @@ static int read_xenbus_vif_flags(struct backend_info *be) | |||
937 | return 0; | 937 | return 0; |
938 | } | 938 | } |
939 | 939 | ||
940 | |||
941 | /* ** Driver Registration ** */ | ||
942 | |||
943 | |||
944 | static const struct xenbus_device_id netback_ids[] = { | 940 | static const struct xenbus_device_id netback_ids[] = { |
945 | { "vif" }, | 941 | { "vif" }, |
946 | { "" } | 942 | { "" } |
947 | }; | 943 | }; |
948 | 944 | ||
949 | 945 | static struct xenbus_driver netback_driver = { | |
950 | static DEFINE_XENBUS_DRIVER(netback, , | 946 | .ids = netback_ids, |
951 | .probe = netback_probe, | 947 | .probe = netback_probe, |
952 | .remove = netback_remove, | 948 | .remove = netback_remove, |
953 | .uevent = netback_uevent, | 949 | .uevent = netback_uevent, |
954 | .otherend_changed = frontend_changed, | 950 | .otherend_changed = frontend_changed, |
955 | ); | 951 | }; |
956 | 952 | ||
957 | int xenvif_xenbus_init(void) | 953 | int xenvif_xenbus_init(void) |
958 | { | 954 | { |