]> git.baikalelectronics.ru Git - kernel.git/commit
soc: sunxi: sram: Prevent the driver from being unbound
authorSamuel Holland <samuel@sholland.org>
Mon, 15 Aug 2022 04:12:41 +0000 (23:12 -0500)
committerJernej Skrabec <jernej.skrabec@gmail.com>
Thu, 8 Sep 2022 20:27:24 +0000 (22:27 +0200)
commit841edc766b58fb0ea76e2180b97936bdd1ed9d72
tree9a449cc2a14ef476eee8054038ce098fa2daa45a
parentf522948b1fb36d69d90a0455b0a53b7e1b5e5262
soc: sunxi: sram: Prevent the driver from being unbound

This driver exports a regmap tied to the platform device (as opposed to
a syscon, which exports a regmap tied to the OF node). Because of this,
the driver can never be unbound, as that would destroy the regmap. Use
builtin_platform_driver_probe() to enforce this limitation.

Fixes: 9ec8c91d0de0 ("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>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Link: https://lore.kernel.org/r/20220815041248.53268-5-samuel@sholland.org
drivers/soc/sunxi/sunxi_sram.c