Skip to content

Commit 74128d8

Browse files
linuswWim Van Sebroeck
authored andcommitted
watchdog: ux500_wdt: Drop platform data
Drop the platform data passing from the PRCMU driver. This platform data was part of the ambition to support more SoCs, which in turn were never mass produced. Only a name remains of the MFD cell so switch to MFD_CELL_NAME(). Cc: Lee Jones <[email protected]> Signed-off-by: Linus Walleij <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Link: https://lore.kernel.org/r/[email protected] Acked-by: Lee Jones <[email protected]> Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
1 parent ee1a069 commit 74128d8

File tree

3 files changed

+3
-41
lines changed

3 files changed

+3
-41
lines changed

drivers/mfd/db8500-prcmu.c

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
#include <linux/mfd/abx500/ab8500.h>
3737
#include <linux/regulator/db8500-prcmu.h>
3838
#include <linux/regulator/machine.h>
39-
#include <linux/platform_data/ux500_wdt.h>
4039
#include "db8500-prcmu-regs.h"
4140

4241
/* Index of different voltages to be used when accessing AVSData */
@@ -2939,18 +2938,8 @@ static struct regulator_init_data db8500_regulators[DB8500_NUM_REGULATORS] = {
29392938
},
29402939
};
29412940

2942-
static struct ux500_wdt_data db8500_wdt_pdata = {
2943-
.timeout = 600, /* 10 minutes */
2944-
.has_28_bits_resolution = true,
2945-
};
2946-
29472941
static const struct mfd_cell common_prcmu_devs[] = {
2948-
{
2949-
.name = "ux500_wdt",
2950-
.platform_data = &db8500_wdt_pdata,
2951-
.pdata_size = sizeof(db8500_wdt_pdata),
2952-
.id = -1,
2953-
},
2942+
MFD_CELL_NAME("ux500_wdt"),
29542943
MFD_CELL_NAME("db8500-cpuidle"),
29552944
};
29562945

drivers/watchdog/ux500_wdt.c

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,13 @@
1515
#include <linux/uaccess.h>
1616
#include <linux/watchdog.h>
1717
#include <linux/platform_device.h>
18-
#include <linux/platform_data/ux500_wdt.h>
1918

2019
#include <linux/mfd/dbx500-prcmu.h>
2120

2221
#define WATCHDOG_TIMEOUT 600 /* 10 minutes */
2322

2423
#define WATCHDOG_MIN 0
2524
#define WATCHDOG_MAX28 268435 /* 28 bit resolution in ms == 268435.455 s */
26-
#define WATCHDOG_MAX32 4294967 /* 32 bit resolution in ms == 4294967.295 s */
2725

2826
static unsigned int timeout = WATCHDOG_TIMEOUT;
2927
module_param(timeout, uint, 0);
@@ -80,22 +78,15 @@ static struct watchdog_device ux500_wdt = {
8078
.info = &ux500_wdt_info,
8179
.ops = &ux500_wdt_ops,
8280
.min_timeout = WATCHDOG_MIN,
83-
.max_timeout = WATCHDOG_MAX32,
81+
.max_timeout = WATCHDOG_MAX28,
8482
};
8583

8684
static int ux500_wdt_probe(struct platform_device *pdev)
8785
{
8886
struct device *dev = &pdev->dev;
8987
int ret;
90-
struct ux500_wdt_data *pdata = dev_get_platdata(dev);
91-
92-
if (pdata) {
93-
if (pdata->timeout > 0)
94-
timeout = pdata->timeout;
95-
if (pdata->has_28_bits_resolution)
96-
ux500_wdt.max_timeout = WATCHDOG_MAX28;
97-
}
9888

89+
timeout = 600; /* Default to 10 minutes */
9990
ux500_wdt.parent = dev;
10091
watchdog_set_nowayout(&ux500_wdt, nowayout);
10192

include/linux/platform_data/ux500_wdt.h

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)