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/char/tpm/xen-tpmfront.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/char/tpm/xen-tpmfront.c')
-rw-r--r-- | drivers/char/tpm/xen-tpmfront.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/char/tpm/xen-tpmfront.c b/drivers/char/tpm/xen-tpmfront.c index 2064b4527040..441b44e54226 100644 --- a/drivers/char/tpm/xen-tpmfront.c +++ b/drivers/char/tpm/xen-tpmfront.c | |||
@@ -367,12 +367,13 @@ static const struct xenbus_device_id tpmfront_ids[] = { | |||
367 | }; | 367 | }; |
368 | MODULE_ALIAS("xen:vtpm"); | 368 | MODULE_ALIAS("xen:vtpm"); |
369 | 369 | ||
370 | static DEFINE_XENBUS_DRIVER(tpmfront, , | 370 | static struct xenbus_driver tpmfront_driver = { |
371 | .probe = tpmfront_probe, | 371 | .ids = tpmfront_ids, |
372 | .remove = tpmfront_remove, | 372 | .probe = tpmfront_probe, |
373 | .resume = tpmfront_resume, | 373 | .remove = tpmfront_remove, |
374 | .otherend_changed = backend_changed, | 374 | .resume = tpmfront_resume, |
375 | ); | 375 | .otherend_changed = backend_changed, |
376 | }; | ||
376 | 377 | ||
377 | static int __init xen_tpmfront_init(void) | 378 | static int __init xen_tpmfront_init(void) |
378 | { | 379 | { |