]> Git Repo - J-linux.git/commitdiff
watchdog: intel-mid_wdt: Get platform data via dev_get_platdata()
authorAndy Shevchenko <[email protected]>
Tue, 5 Mar 2024 16:52:20 +0000 (18:52 +0200)
committerWim Van Sebroeck <[email protected]>
Sun, 10 Mar 2024 10:14:46 +0000 (11:14 +0100)
Access to platform data via dev_get_platdata() getter to make code cleaner.

Signed-off-by: Andy Shevchenko <[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]>
drivers/watchdog/intel-mid_wdt.c

index 06d5d207a065a06ae058228a534b0853d5cbc894..8d71f6a2236bfa7dfd864f17e32e11baa57e30ea 100644 (file)
@@ -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;
 
This page took 0.053044 seconds and 4 git commands to generate.