VFIO: platform: populate the reset function on probe
commit3eeb0d510c65e777030156f03c116393095a3248
authorEric Auger <eric.auger@linaro.org>
Mon, 15 Jun 2015 09:09:44 +0000 (15 11:09 +0200)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 22 Jun 2015 15:35:30 +0000 (22 09:35 -0600)
tree078e388fa2c34850a13668efd4499673ed92d506
parent813ae66008aeb97a48f20efefeb962179b642dbe
VFIO: platform: populate the reset function on probe

The reset function lookup happens on vfio-platform probe. The reset
module load is requested  and a reference to the function symbol is
hold. The reference is released on vfio-platform remove.

Signed-off-by: Eric Auger <eric.auger@linaro.org>
Acked-by: Baptiste Reynal <b.reynal@virtualopensystems.com>
Tested-by: Baptiste Reynal <b.reynal@virtualopensystems.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/platform/vfio_platform_common.c