]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fpga: region: Use standard dev_release for class driver
authorRuss Weight <russell.h.weight@intel.com>
Fri, 19 Nov 2021 01:55:53 +0000 (17:55 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Jun 2024 11:39:38 +0000 (13:39 +0200)
commit33c213cdfc622d8bcf003bfe81755f63305f8163
treecbe9c6a64df2c064d264237d74377c17dfb04296
parent194e0455273cfb1b41f972ce3146df8102e1b1fd
fpga: region: Use standard dev_release for class driver

[ Upstream commit 8886a579744fbfa53e69aa453ed10ae3b1f9abac ]

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: Russ Weight <russell.h.weight@intel.com>
Reviewed-by: Xu Yilun <yilun.xu@intel.com>
Acked-by: Xu Yilun <yilun.xu@intel.com>
Signed-off-by: Moritz Fischer <mdf@kernel.org>
Stable-dep-of: b7c0e1ecee40 ("fpga: region: add owner module and take its refcount")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Documentation/driver-api/fpga/fpga-region.rst
drivers/fpga/dfl-fme-region.c
drivers/fpga/dfl.c
drivers/fpga/fpga-region.c
drivers/fpga/of-fpga-region.c
include/linux/fpga/fpga-region.h