1
0
mirror of https://github.com/torvalds/linux.git synced 2024-12-13 22:53:20 +00:00
linux/drivers/firmware/xilinx
Christophe JAILLET 65f0539b1d firmware: xilinx: Fix an error handling path in 'zynqmp_firmware_probe()'
If 'mfd_add_devices()' fails, we must undo 'zynqmp_pm_api_debugfs_init()'
otherwise some debugfs directory and files will be left.

Just move the call to 'zynqmp_pm_api_debugfs_init()' a few lines below to
fix the issue.

Fixes: e23d9c6d0d ("drivers: soc: xilinx: Add ZynqMP power domain driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Jolly Shah <jolly.shah@xilinx.com>
Link: https://lore.kernel.org/r/20200510130357.233364-1-christophe.jaillet@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-05-15 16:20:02 +02:00
..
Kconfig arm64: zynqmp: Make zynqmp_firmware driver optional 2020-03-09 14:58:24 +01:00
Makefile firmware: xilinx: Add debugfs interface 2018-09-26 08:47:35 +02:00
zynqmp-debug.c firmware: xilinx: Remove eemi ops for query_data 2020-04-28 15:45:06 +02:00
zynqmp-debug.h firmware: xilinx: Add debugfs interface 2018-09-26 08:47:35 +02:00
zynqmp.c firmware: xilinx: Fix an error handling path in 'zynqmp_firmware_probe()' 2020-05-15 16:20:02 +02:00