aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/cpwd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/watchdog/cpwd.c')
-rw-r--r--drivers/watchdog/cpwd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/watchdog/cpwd.c b/drivers/watchdog/cpwd.c
index 70387582843f..213225edd059 100644
--- a/drivers/watchdog/cpwd.c
+++ b/drivers/watchdog/cpwd.c
@@ -621,7 +621,7 @@ static int cpwd_probe(struct platform_device *op)
621 WD_BADMODEL); 621 WD_BADMODEL);
622 } 622 }
623 623
624 dev_set_drvdata(&op->dev, p); 624 platform_set_drvdata(op, p);
625 cpwd_device = p; 625 cpwd_device = p;
626 err = 0; 626 err = 0;
627 627
@@ -642,7 +642,7 @@ out_free:
642 642
643static int cpwd_remove(struct platform_device *op) 643static int cpwd_remove(struct platform_device *op)
644{ 644{
645 struct cpwd *p = dev_get_drvdata(&op->dev); 645 struct cpwd *p = platform_get_drvdata(op);
646 int i; 646 int i;
647 647
648 for (i = 0; i < WD_NUMDEVS; i++) { 648 for (i = 0; i < WD_NUMDEVS; i++) {