From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from filtteri2.pp.htv.fi ([213.243.153.185]:48271 "EHLO filtteri2.pp.htv.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757036Ab2JJUXp (ORCPT ); Wed, 10 Oct 2012 16:23:45 -0400 From: Aaro Koskinen To: wim@iguana.be, linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Aaro Koskinen Subject: [PATCH v3 5/6] watchdog: omap_wdt: delete redundant platform_set_drvdata() calls Date: Wed, 10 Oct 2012 23:23:36 +0300 Message-Id: <1349900617-7035-6-git-send-email-aaro.koskinen@iki.fi> In-Reply-To: <1349900617-7035-1-git-send-email-aaro.koskinen@iki.fi> References: <1349900617-7035-1-git-send-email-aaro.koskinen@iki.fi> Sender: linux-watchdog-owner@vger.kernel.org List-Id: linux-watchdog@vger.kernel.org It's not needed to manually reset the driver data. Signed-off-by: Aaro Koskinen --- drivers/watchdog/omap_wdt.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/watchdog/omap_wdt.c b/drivers/watchdog/omap_wdt.c index 7e8d3e0..af1e72e 100644 --- a/drivers/watchdog/omap_wdt.c +++ b/drivers/watchdog/omap_wdt.c @@ -280,7 +280,6 @@ static int __devinit omap_wdt_probe(struct platform_device *pdev) err_misc: pm_runtime_disable(wdev->dev); - platform_set_drvdata(pdev, NULL); return ret; } @@ -306,7 +305,6 @@ static int __devexit omap_wdt_remove(struct platform_device *pdev) pm_runtime_disable(wdev->dev); watchdog_unregister_device(wdog); - platform_set_drvdata(pdev, NULL); return 0; } -- 1.7.2.5