summaryrefslogtreecommitdiffstats
path: root/include/linux/fpga
diff options
context:
space:
mode:
authorAlan Tull2018-10-16 00:20:01 +0200
committerGreg Kroah-Hartman2018-10-16 11:13:50 +0200
commit084181fe8cc7472695b907f0018f4cd00934cb12 (patch)
tree812b6c10de92d91bccfdec2da621abacc2745c4d /include/linux/fpga
parenthv_balloon: Replace spin_is_locked() with lockdep (diff)
downloadkernel-qcow2-linux-084181fe8cc7472695b907f0018f4cd00934cb12.tar.gz
kernel-qcow2-linux-084181fe8cc7472695b907f0018f4cd00934cb12.tar.xz
kernel-qcow2-linux-084181fe8cc7472695b907f0018f4cd00934cb12.zip
fpga: mgr: add devm_fpga_mgr_create
Add devm_fpga_mgr_create() which is the managed version of fpga_mgr_create(). Change current FPGA manager drivers to use devm_fpga_mgr_create() Signed-off-by: Alan Tull <atull@kernel.org> Suggested-by: Federico Vaga <federico.vaga@cern.ch> Acked-by: Moritz Fischer <mdf@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/fpga')
-rw-r--r--include/linux/fpga/fpga-mgr.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/fpga/fpga-mgr.h b/include/linux/fpga/fpga-mgr.h
index 8ab5df769923..e8ca62b2cb5b 100644
--- a/include/linux/fpga/fpga-mgr.h
+++ b/include/linux/fpga/fpga-mgr.h
@@ -198,4 +198,8 @@ void fpga_mgr_free(struct fpga_manager *mgr);
int fpga_mgr_register(struct fpga_manager *mgr);
void fpga_mgr_unregister(struct fpga_manager *mgr);
+struct fpga_manager *devm_fpga_mgr_create(struct device *dev, const char *name,
+ const struct fpga_manager_ops *mops,
+ void *priv);
+
#endif /*_LINUX_FPGA_MGR_H */