]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 14 Nov 2022 10:25:30 +0000 (11:25 +0100)
commit7bb641eddc02c83cb1a50d621f5248e9e96e5477
treec056634b5693a7a632175691de5f87d15950376e
parentd32eccde76cb2c7b7889ea75e18b4bf2503b288f
soc: sunxi: sram: Prevent the driver from being unbound

BugLink: https://bugs.launchpad.net/bugs/1995517
[ Upstream commit 90e10a1fcd9b24b4ba8c0d35136127473dcd829e ]

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: 5828729bebbb ("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
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/soc/sunxi/sunxi_sram.c