aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/vfio/platform/reset
diff options
context:
space:
mode:
authorEric Auger <eric.auger@linaro.org>2015-11-03 18:12:17 +0000
committerAlex Williamson <alex.williamson@redhat.com>2015-11-03 12:55:03 -0700
commite9e0506ee60dd79714c59457f4301c602786defc (patch)
tree2f155d28505742ce7af5bd843d4e71c7ca9e4eba /drivers/vfio/platform/reset
parentvfio: platform: add compat in vfio_platform_device (diff)
downloadlinux-dev-e9e0506ee60dd79714c59457f4301c602786defc.tar.xz
linux-dev-e9e0506ee60dd79714c59457f4301c602786defc.zip
vfio: platform: use list of registered reset function
Remove the static lookup table and use the dynamic list of registered reset functions instead. Also load the reset module through its alias. The reset struct module pointer is stored in vfio_platform_device. We also remove the useless struct device pointer parameter in vfio_platform_get_reset. This patch fixes the issue related to the usage of __symbol_get, which besides from being moot, prevented compilation with CONFIG_MODULES disabled. Also usage of MODULE_ALIAS makes possible to add a new reset module without needing to update the framework. This was suggested by Arnd. Signed-off-by: Eric Auger <eric.auger@linaro.org> Reported-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'drivers/vfio/platform/reset')
-rw-r--r--drivers/vfio/platform/reset/vfio_platform_calxedaxgmac.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/vfio/platform/reset/vfio_platform_calxedaxgmac.c b/drivers/vfio/platform/reset/vfio_platform_calxedaxgmac.c
index 80718f20d5d3..640f5d87d422 100644
--- a/drivers/vfio/platform/reset/vfio_platform_calxedaxgmac.c
+++ b/drivers/vfio/platform/reset/vfio_platform_calxedaxgmac.c
@@ -76,7 +76,6 @@ int vfio_platform_calxedaxgmac_reset(struct vfio_platform_device *vdev)
return 0;
}
-EXPORT_SYMBOL_GPL(vfio_platform_calxedaxgmac_reset);
module_vfio_reset_handler("calxeda,hb-xgmac", vfio_platform_calxedaxgmac_reset);