Commit 33c213cd authored by Russ Weight's avatar Russ Weight Committed by Greg Kroah-Hartman
Browse files

fpga: region: Use standard dev_release for class driver



[ Upstream commit 8886a579 ]

The FPGA region class driver data structure is being treated as a
managed resource instead of using the standard dev_release call-back
function to release the class data structure. This change removes the
managed resource code and combines the create() and register()
functions into a single register() or register_full() function.

The register_full() function accepts an info data structure to provide
flexibility in passing optional parameters. The register() function
supports the current parameter list for users that don't require the
use of optional parameters.

Signed-off-by: default avatarRuss Weight <russell.h.weight@intel.com>
Reviewed-by: default avatarXu Yilun <yilun.xu@intel.com>
Acked-by: default avatarXu Yilun <yilun.xu@intel.com>
Signed-off-by: default avatarMoritz Fischer <mdf@kernel.org>
Stable-dep-of: b7c0e1ec ("fpga: region: add owner module and take its refcount")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 194e0455
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment