summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/rk8xx-core.c
diff options
context:
space:
mode:
authorSebastian Reichel <sebastian.reichel@collabora.com>2023-05-04 19:36:10 +0200
committerLee Jones <lee@kernel.org>2023-05-15 16:19:30 +0100
commit74413bd611b4fd21fdf90e369780b2f8543447a4 (patch)
tree9dc07d4bcdfd7b6e9bbd27c4b2edd4869d5f6842 /drivers/mfd/rk8xx-core.c
parentc20e8c5b1203af3726561ee5649b147194e0618e (diff)
downloadlinux-74413bd611b4fd21fdf90e369780b2f8543447a4.tar.gz
linux-74413bd611b4fd21fdf90e369780b2f8543447a4.tar.bz2
linux-74413bd611b4fd21fdf90e369780b2f8543447a4.zip
mfd: rk8xx-i2c: Use device_get_match_data
Simplify the device identification logic by supplying the relevant information via of_match_data. This also removes the dev_info() printing the chip version, since that's supplied by the match data now. Due to lack of hardware this change is compile-tested only. Tested-by: Diederik de Haas <didi.debian@cknow.org> # Rock64, Quartz64 Model A + B Tested-by: Vincent Legoll <vincent.legoll@gmail.com> # Pine64 QuartzPro64 Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com> Link: https://lore.kernel.org/r/20230504173618.142075-7-sebastian.reichel@collabora.com Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'drivers/mfd/rk8xx-core.c')
-rw-r--r--drivers/mfd/rk8xx-core.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/mfd/rk8xx-core.c b/drivers/mfd/rk8xx-core.c
index 5c0a5acef34c..ddf2052c5190 100644
--- a/drivers/mfd/rk8xx-core.c
+++ b/drivers/mfd/rk8xx-core.c
@@ -597,8 +597,6 @@ int rk8xx_probe(struct device *dev, int variant, unsigned int irq, struct regmap
return -EINVAL;
}
- dev_info(dev, "chip id: 0x%x\n", (unsigned int)rk808->variant);
-
if (!irq)
return dev_err_probe(dev, -EINVAL, "No interrupt support, no core IRQ\n");