Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933297Ab3ECGji (ORCPT ); Fri, 3 May 2013 02:39:38 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:62008 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932967Ab3ECGjf (ORCPT ); Fri, 3 May 2013 02:39:35 -0400 X-AuditID: cbfee68f-b7f066d000003683-3e-51835ba6841c From: Jingoo Han To: "'Andrew Morton'" Cc: linux-kernel@vger.kernel.org, "'Alessandro Zummo'" , rtc-linux@googlegroups.com, Jingoo Han , "'Guan Xuetao'" Subject: [PATCH 40/42] rtc: rtc-puv3: remove unnecessary platform_set_drvdata() Date: Fri, 03 May 2013 15:39:34 +0900 Message-id: <003601ce47c8$f9aa1e30$ecfe5a90$@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-index: Ac5HyOpJZWXaFy1yRvKKx9bj39NiAA== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrGIsWRmVeSWpSXmKPExsVy+t8zI91l0c2BBpMPmlosuXiV3WLO+jVs FgdvfGO3uLzwEqvF5V1z2Cz2d3YwOrB57Jl4ks3jxIzfLB6P91p69G1Zxegxfd5PJo/Pm+QC 2KK4bFJSczLLUov07RK4MlonzmIqOM5WMX2zTQPjHtYuRk4OCQETiY03T7FA2GISF+6tZ+ti 5OIQEljGKHHz0C2gIg6wotmr7CDi0xkldu37xwTh/GKU+PvgAjNIN5uAmsSXL4fZQRpEBPQl 2lo0QGqYBTYxSixbeI4JpEZYwF/i+oPVTCA1LAKqEmv+SYOEeQUsJXa29zJB2IISPybfAzuI WUBLYv3O40wQtrzE5jVvmSEOVZDYcfY1I4gtIqAn0bhoPjtEjYjEvhfvGCFqLrFLLD6tBmKz CAhIfJt8iAXiF1mJTQegxkhKHFxxg2UCo9gsJJtnIdk8C8nmWUg2LGBk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cn/srTfmiaxrUZlm1xrSb1B6oUej60mS6oaY2s1Tg6NElA/5Gec+3OW6cFPqykWTnsxv +yciI9bc9ZaF4+axa56Mqd+uJmZefSQ07UM6Q7zVXL2EY1H/v3/mX3tOrk63Ueer79GOhe9T Zp5Q9je/NXXqj8a4D2wJFu8rJjE1KrEUZyQaajEXFScCAEkJu7M3AwAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1058 Lines: 31 The driver core clears the driver data to NULL after device_release or on probe failure, since commit 0998d0631001288a5974afc0b2a5f568bcdecb4d (device-core: Ensure drvdata = NULL when no driver is bound). Thus, it is not needed to manually clear the device driver data to NULL. Signed-off-by: Jingoo Han --- drivers/rtc/rtc-puv3.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/rtc/rtc-puv3.c b/drivers/rtc/rtc-puv3.c index 72f4371..402732c 100644 --- a/drivers/rtc/rtc-puv3.c +++ b/drivers/rtc/rtc-puv3.c @@ -224,7 +224,6 @@ static int puv3_rtc_remove(struct platform_device *dev) { struct rtc_device *rtc = platform_get_drvdata(dev); - platform_set_drvdata(dev, NULL); rtc_device_unregister(rtc); puv3_rtc_setpie(&dev->dev, 0); -- 1.7.2.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/