Skip to content

Commit ccfb765

Browse files
petegriffinWim Van Sebroeck
authored andcommitted
Revert "watchdog: s3c2410_wdt: use exynos_get_pmu_regmap_by_phandle() for PMU regs"
This reverts commit 746f077. Now that we can register a SoC specific regmap with syscon using of_syscon_register_regmap() api we can switch back to using syscon_regmap_lookup_by_phandle() in the client drivers. Signed-off-by: Peter Griffin <[email protected]> Reviewed-by: Sam Protsenko <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
1 parent bad201b commit ccfb765

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

drivers/watchdog/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,7 @@ config S3C2410_WATCHDOG
557557
tristate "S3C6410/S5Pv210/Exynos Watchdog"
558558
depends on ARCH_S3C64XX || ARCH_S5PV210 || ARCH_EXYNOS || COMPILE_TEST
559559
select WATCHDOG_CORE
560+
select MFD_SYSCON if ARCH_EXYNOS
560561
help
561562
Watchdog timer block in the Samsung S3C64xx, S5Pv210 and Exynos
562563
SoCs. This will reboot the system when the timer expires with

drivers/watchdog/s3c2410_wdt.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
#include <linux/slab.h>
2525
#include <linux/err.h>
2626
#include <linux/of.h>
27+
#include <linux/mfd/syscon.h>
2728
#include <linux/regmap.h>
2829
#include <linux/delay.h>
29-
#include <linux/soc/samsung/exynos-pmu.h>
3030

3131
#define S3C2410_WTCON 0x00
3232
#define S3C2410_WTDAT 0x04
@@ -699,11 +699,11 @@ static int s3c2410wdt_probe(struct platform_device *pdev)
699699
return ret;
700700

701701
if (wdt->drv_data->quirks & QUIRKS_HAVE_PMUREG) {
702-
wdt->pmureg = exynos_get_pmu_regmap_by_phandle(dev->of_node,
703-
"samsung,syscon-phandle");
702+
wdt->pmureg = syscon_regmap_lookup_by_phandle(dev->of_node,
703+
"samsung,syscon-phandle");
704704
if (IS_ERR(wdt->pmureg))
705705
return dev_err_probe(dev, PTR_ERR(wdt->pmureg),
706-
"PMU regmap lookup failed.\n");
706+
"syscon regmap lookup failed.\n");
707707
}
708708

709709
wdt_irq = platform_get_irq(pdev, 0);

0 commit comments

Comments
 (0)