Skip to content

Commit

Permalink
watchdog: mt7621_wdt: Remove assignment of dev pointer
Browse files Browse the repository at this point in the history
Commit 0254e95 ("watchdog: Drop pointer to watchdog device from
struct watchdog_device") removed the dev pointer from struct
watchdog_device, but this driver was still assigning it, leading to
a compilation error:

drivers/watchdog/mt7621_wdt.c: In function 'mt7621_wdt_probe':
drivers/watchdog/mt7621_wdt.c:142:16: error:
	'struct watchdog_device' has no member named 'dev'

Fix this by removing the assignment.

Fixes: 0254e95 ("watchdog: Drop pointer to watchdog device ...")
Signed-off-by: Guenter Roeck <[email protected]>
Cc: [email protected] # v4.5+
Signed-off-by: Wim Van Sebroeck <[email protected]>
  • Loading branch information
groeck authored and Wim Van Sebroeck committed Sep 24, 2016
1 parent df9c692 commit 8355b3f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/watchdog/mt7621_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ static int mt7621_wdt_probe(struct platform_device *pdev)
if (!IS_ERR(mt7621_wdt_reset))
reset_control_deassert(mt7621_wdt_reset);

mt7621_wdt_dev.dev = &pdev->dev;
mt7621_wdt_dev.bootstatus = mt7621_wdt_bootcause();

watchdog_init_timeout(&mt7621_wdt_dev, mt7621_wdt_dev.max_timeout,
Expand Down

0 comments on commit 8355b3f

Please sign in to comment.