diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2024-03-05 17:52:20 +0100 |
---|---|---|
committer | Wim Van Sebroeck <wim@linux-watchdog.org> | 2024-03-10 11:14:46 +0100 |
commit | 6fe5aabf7fc645562faec50c79c7a21a4dd1cab6 (patch) | |
tree | 8adf3f6aa8d37da858148ba4e955d10def03b569 /drivers/watchdog | |
parent | watchdog: intel-mid_wdt: Don't use "proxy" headers (diff) | |
download | linux-6fe5aabf7fc645562faec50c79c7a21a4dd1cab6.tar.xz linux-6fe5aabf7fc645562faec50c79c7a21a4dd1cab6.zip |
watchdog: intel-mid_wdt: Get platform data via dev_get_platdata()
Access to platform data via dev_get_platdata() getter to make code cleaner.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20240305165306.1366823-4-andriy.shevchenko@linux.intel.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r-- | drivers/watchdog/intel-mid_wdt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/watchdog/intel-mid_wdt.c b/drivers/watchdog/intel-mid_wdt.c index 06d5d207a065..8d71f6a2236b 100644 --- a/drivers/watchdog/intel-mid_wdt.c +++ b/drivers/watchdog/intel-mid_wdt.c @@ -127,7 +127,7 @@ static int mid_wdt_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; struct watchdog_device *wdt_dev; - struct intel_mid_wdt_pdata *pdata = dev->platform_data; + struct intel_mid_wdt_pdata *pdata = dev_get_platdata(dev); struct mid_wdt *mid; int ret; |