linux/drivers/vfio/platform
Eric Auger e9e0506ee6 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>
2015-11-03 12:55:03 -07:00
..
reset vfio: platform: use list of registered reset function 2015-11-03 12:55:03 -07:00
Kconfig VFIO: platform: enable ARM64 build 2015-06-22 09:35:47 -06:00
Makefile vfio: platform: introduce vfio-platform-base module 2015-11-03 12:54:56 -07:00
vfio_amba.c vfio: platform: introduce vfio-platform-base module 2015-11-03 12:54:56 -07:00
vfio_platform_common.c vfio: platform: use list of registered reset function 2015-11-03 12:55:03 -07:00
vfio_platform_irq.c VFIO: platform: clear IRQ_NOAUTOEN when de-assigning the IRQ 2015-10-27 15:02:53 -06:00
vfio_platform_private.h vfio: platform: use list of registered reset function 2015-11-03 12:55:03 -07:00
vfio_platform.c vfio: platform: introduce vfio-platform-base module 2015-11-03 12:54:56 -07:00