From patchwork Fri Sep 6 11:33:41 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 273160 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-pa0-x23b.google.com (mail-pa0-x23b.google.com [IPv6:2607:f8b0:400e:c03::23b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 584E52C00F9 for ; Fri, 6 Sep 2013 21:51:58 +1000 (EST) Received: by mail-pa0-f59.google.com with SMTP id bg4sf686607pad.4 for ; Fri, 06 Sep 2013 04:51:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=mime-version:from:to:cc:subject:date:message-id:in-reply-to :references:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:sender:list-subscribe:list-unsubscribe:content-type; bh=83lBZQhsFMfVjjAEWVYLjPaxFBWoBJMP6JiAceeS69U=; b=Q8KzGnW0oMpiCWCShGkQ3vbkic1w7qLOPeP/qxIRgS71Du3/+40ULLbGdW/KP48SCZ ouhtTc6i8ksS/O0GmrEeM0gfsXpC7lxWRYHHdviM+1aY0HrQ1WyJGqxBPaBWVRk36DYG 55y9bfCVuQ1w3cZ5KYjWEdX9JgPyCd+qBDnMcocOv4piq+PWhWfSG7VdQlnBM9ykjhzn Oj8bayHQz1Z33FlkEyj+uE+n0luVNc7dn21u4/TxjobKVhY1QHhKAl8xyfXq6ZZPLE+J 87bs4X1mm8H07Dq3KUtWAC4nolijd6NUnNCB16Cb0MUKfNqZMQp8fCiNvpiFK7zP9S9A DHMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :in-reply-to:references:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type; bh=83lBZQhsFMfVjjAEWVYLjPaxFBWoBJMP6JiAceeS69U=; b=gIqlmJK/nYcYv8TcVmcvsoUHVh423RtB91uWelA2XJxW86iIaEpxxFbASNbXefny4O mX8L438VHQPiGVySMEUIBG0aDzB1NRBEP0jfuMJsdVOBCC/4L1BIXB+jtF39oUB1R1OG AasD9IzhUAVqYGEzqhLhiKFp5JqW7vC8QlgE5d1dibOYvTlBolya4EgNtei/Wi0GfxHv n5LlLSAO4YT9cTJVyXlzeTexNRnk0+FZ9kmUG88xeJw5HDsaVm1VFnJWhzYilIe6m8nW BEkvygCUm9TzSglh4mQtr72W/Tn77mrDuMztPz2wwXg27Ev3DucILVgkQDpM6Tx0qOqT LN0Q== X-Received: by 10.50.9.33 with SMTP id w1mr87590iga.12.1378468315896; Fri, 06 Sep 2013 04:51:55 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.50.102.5 with SMTP id fk5ls448366igb.15.canary; Fri, 06 Sep 2013 04:51:55 -0700 (PDT) X-Received: by 10.66.193.199 with SMTP id hq7mr958817pac.5.1378468315467; Fri, 06 Sep 2013 04:51:55 -0700 (PDT) Received: from mail-pd0-f178.google.com (mail-pd0-f178.google.com [209.85.192.178]) by gmr-mx.google.com with ESMTPS id dk16si456085pac.0.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 06 Sep 2013 04:51:55 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.178 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.192.178; Received: by mail-pd0-f178.google.com with SMTP id w10so3180804pde.9 for ; Fri, 06 Sep 2013 04:51:55 -0700 (PDT) X-Gm-Message-State: ALoCoQl+AKHjzAWpIYI/Kl7oC18T3qb+SvOC1ogvVtp9Slrt9msGG1KLecZVvklIswOHDFNrnAXW X-Received: by 10.66.145.132 with SMTP id su4mr3505501pab.11.1378468315389; Fri, 06 Sep 2013 04:51:55 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id q1sm3323153pbd.12.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 06 Sep 2013 04:51:54 -0700 (PDT) From: Sachin Kamat To: rtc-linux@googlegroups.com Cc: a.zummo@towertech.it, akpm@linux-foundation.org, sachin.kamat@linaro.org Subject: [rtc-linux] [PATCH 08/10] drivers/rtc/rtc-cmos.c: Remove redundant dev_set_drvdata Date: Fri, 6 Sep 2013 17:03:41 +0530 Message-Id: <1378467223-26231-8-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1378467223-26231-1-git-send-email-sachin.kamat@linaro.org> References: <1378467223-26231-1-git-send-email-sachin.kamat@linaro.org> X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 209.85.192.178 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: X-Google-Group-Id: 712029733259 List-Post: , List-Help: , List-Archive: Sender: rtc-linux@googlegroups.com List-Subscribe: , List-Unsubscribe: , Driver core sets the driver data to NULL upon device_release or on probe failure. Signed-off-by: Sachin Kamat --- drivers/rtc/rtc-cmos.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/rtc/rtc-cmos.c b/drivers/rtc/rtc-cmos.c index be06d71..2b0bec1 100644 --- a/drivers/rtc/rtc-cmos.c +++ b/drivers/rtc/rtc-cmos.c @@ -789,7 +789,6 @@ static void __exit cmos_do_remove(struct device *dev) cmos->iomem = NULL; cmos->dev = NULL; - dev_set_drvdata(dev, NULL); } #ifdef CONFIG_PM