]> www.infradead.org Git - users/jedix/linux-maple.git/commit
fpga: dfl: drop unneeded get_device() and put_device() of feature device
authorPeter Colberg <peter.colberg@intel.com>
Wed, 20 Nov 2024 01:10:33 +0000 (20:10 -0500)
committerXu Yilun <yilun.xu@linux.intel.com>
Wed, 18 Dec 2024 14:28:48 +0000 (22:28 +0800)
commitff1f06b60ab041b3ff69c7b3e23d5d5d5ae2f97e
tree3ea25f875fb5d9dff6480333116350e12d4f40a1
parent57146d9454882c4539f0f239505958ad8e0ddfd8
fpga: dfl: drop unneeded get_device() and put_device() of feature device

The feature device data was originally stored as platform data, hence
the memory allocation was tied to the lifetime of the feature device.
Now that the feature device data is tied to the lifetime of the DFL PCIe
FPGA device instead, get_device() and put_device() are no longer needed.

Signed-off-by: Peter Colberg <peter.colberg@intel.com>
Reviewed-by: Matthew Gerlach <matthew.gerlach@linux.intel.com>
Reviewed-by: Basheer Ahmed Muddebihal <basheer.ahmed.muddebihal@linux.intel.com>
Acked-by: Xu Yilun <yilun.xu@intel.com>
Link: https://lore.kernel.org/r/20241120011035.230574-18-peter.colberg@intel.com
Signed-off-by: Xu Yilun <yilun.xu@linux.intel.com>
drivers/fpga/dfl-fme-br.c
drivers/fpga/dfl.c
drivers/fpga/dfl.h