linux-stable/drivers/soc
Samuel Holland 49fad91a7b soc: sunxi: sram: Fix probe function ordering issues
Errors from debugfs are intended to be non-fatal, and should not prevent
the driver from probing.

Since debugfs file creation is treated as infallible, move it below the
parts of the probe function that can fail. This prevents an error
elsewhere in the probe function from causing the file to leak. Do the
same for the call to of_platform_populate().

Finally, checkpatch suggests an octal literal for the file permissions.

Fixes: 4af34b572a ("drivers: soc: sunxi: Introduce SoC driver to map SRAMs")
Fixes: 5828729beb ("soc: sunxi: export a regmap for EMAC clock reg on A64")
Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Signed-off-by: Samuel Holland <samuel@sholland.org>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Link: https://lore.kernel.org/r/20220815041248.53268-6-samuel@sholland.org
2022-09-08 22:28:03 +02:00
..
actions
amlogic soc: amlogic: Fix refcount leak in meson-secure-pwrc.c 2022-06-17 09:40:40 +02:00
apple soc: apple: Add SART driver 2022-05-02 17:24:45 +02:00
aspeed soc: aspeed: lpc-ctrl: Block error printing on probe defer cases 2022-02-08 09:52:59 +01:00
atmel ARM: at91: fix soc detection for SAM9X60 SiPs 2022-06-28 12:55:32 +03:00
bcm This pull request contains Broadcom SoC drivers updatse for 5.20, please 2022-07-12 22:59:09 +02:00
canaan riscv: canaan: remove useless select of non-existing config SYSCON 2022-01-20 09:35:11 -08:00
dove
fsl soc: fsl: guts: check return value after calling of_iomap() in fsl_guts_get_soc_uid() 2022-07-05 08:41:55 +08:00
fujitsu soc: a64fx-diag: disable modular build 2022-07-20 17:58:18 +02:00
gemini
imx i.MX drivers change for 5.20: 2022-07-12 22:56:12 +02:00
ixp4xx soc: ixp4xx/npe: Fix unused match warning 2022-07-01 15:14:26 +02:00
lantiq
litex
mediatek soc: mediatek: mutex: Simplify with devm_platform_get_and_ioremap_resource() 2022-07-08 10:29:17 +02:00
microchip ARM driver updates for 5.18 2022-03-23 18:23:13 -07:00
pxa ARM: pxa: move plat-pxa to drivers/soc/ 2022-05-07 22:56:16 +02:00
qcom asm-generic: updates for 6.0 2022-08-05 10:07:23 -07:00
renesas soc: renesas: rcar-sysc: Optimize rcar_sysc_area struct sizes 2022-06-13 11:43:50 +02:00
rockchip Refcount leak for a used of-node in the grf-init. 2022-05-27 22:19:48 +02:00
samsung MAINTAINERS: update Krzysztof Kozlowski's email 2022-03-07 23:46:03 +01:00
sifive
sunxi soc: sunxi: sram: Fix probe function ordering issues 2022-09-08 22:28:03 +02:00
tegra soc/tegra: Migrate to dev_pm_opp_set_config() 2022-07-08 11:27:33 +05:30
ti SPDX changes for 6.0-rc1 2022-08-04 12:12:54 -07:00
ux500
versatile
xilinx firmware: xilinx: Add TF_A_PM_REGISTER_SGI SMC call 2022-06-29 14:46:22 +02:00
Kconfig soc: fujitsu: Add A64FX diagnostic interrupt driver 2022-07-18 13:37:08 +02:00
Makefile soc: fujitsu: Add A64FX diagnostic interrupt driver 2022-07-18 13:37:08 +02:00