diff options
author | Eric Auger <eric.auger@linaro.org> | 2015-11-03 13:12:15 -0500 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2015-11-03 14:55:00 -0500 |
commit | 680742f644be61657f82d43a2c2fff0489d4a579 (patch) | |
tree | a3fb38d87ebad6fbc327a5559bcc7656bb14c8dc | |
parent | 588646529f2d09b723584d44ef0a8ab6ff2a690d (diff) |
vfio: platform: reset: calxedaxgmac: add reset function registration
This patch adds the reset function registration/unregistration.
This is handled through the module_vfio_reset_handler macro. This
latter also defines a MODULE_ALIAS which simplifies the load from
vfio-platform.
Signed-off-by: Eric Auger <eric.auger@linaro.org>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
-rw-r--r-- | drivers/vfio/platform/reset/vfio_platform_calxedaxgmac.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/vfio/platform/reset/vfio_platform_calxedaxgmac.c b/drivers/vfio/platform/reset/vfio_platform_calxedaxgmac.c index 619dc7d22082..80718f20d5d3 100644 --- a/drivers/vfio/platform/reset/vfio_platform_calxedaxgmac.c +++ b/drivers/vfio/platform/reset/vfio_platform_calxedaxgmac.c | |||
@@ -30,8 +30,6 @@ | |||
30 | #define DRIVER_AUTHOR "Eric Auger <eric.auger@linaro.org>" | 30 | #define DRIVER_AUTHOR "Eric Auger <eric.auger@linaro.org>" |
31 | #define DRIVER_DESC "Reset support for Calxeda xgmac vfio platform device" | 31 | #define DRIVER_DESC "Reset support for Calxeda xgmac vfio platform device" |
32 | 32 | ||
33 | #define CALXEDAXGMAC_COMPAT "calxeda,hb-xgmac" | ||
34 | |||
35 | /* XGMAC Register definitions */ | 33 | /* XGMAC Register definitions */ |
36 | #define XGMAC_CONTROL 0x00000000 /* MAC Configuration */ | 34 | #define XGMAC_CONTROL 0x00000000 /* MAC Configuration */ |
37 | 35 | ||
@@ -80,6 +78,8 @@ int vfio_platform_calxedaxgmac_reset(struct vfio_platform_device *vdev) | |||
80 | } | 78 | } |
81 | EXPORT_SYMBOL_GPL(vfio_platform_calxedaxgmac_reset); | 79 | EXPORT_SYMBOL_GPL(vfio_platform_calxedaxgmac_reset); |
82 | 80 | ||
81 | module_vfio_reset_handler("calxeda,hb-xgmac", vfio_platform_calxedaxgmac_reset); | ||
82 | |||
83 | MODULE_VERSION(DRIVER_VERSION); | 83 | MODULE_VERSION(DRIVER_VERSION); |
84 | MODULE_LICENSE("GPL v2"); | 84 | MODULE_LICENSE("GPL v2"); |
85 | MODULE_AUTHOR(DRIVER_AUTHOR); | 85 | MODULE_AUTHOR(DRIVER_AUTHOR); |