From patchwork Fri Sep 20 04:21:31 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 276207 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-pb0-x237.google.com (mail-pb0-x237.google.com [IPv6:2607:f8b0:400e:c01::237]) (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 B9AED2C00C3 for ; Fri, 20 Sep 2013 14:21:24 +1000 (EST) Received: by mail-pb0-f55.google.com with SMTP id ro12sf2612296pbb.0 for ; Thu, 19 Sep 2013 21:21:21 -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: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=PZUzC1RepKhcm3ZciLgC2ULBxiEbasPtAPnMBHVURyQ=; b=DqxqC8PA0Bo1J4jiUjUHkPTuhc4HTd1QKBKsfCSnIBxNf+AhyyAuDmfnYC3cvF5oQX GOsixOhYuFzZN39fjroTCrF0Ntv+v4OZ9n4MzWR71A+UZGwujRqzO/Hv28Vb9S4k8lP8 dLLGQuDUV4ZXV9IdqjAVpsHUFdEuCg815hz1KRqkUhVab8us6e5QhA5k6USq35VD0Ga3 7fBG+gxLzRL9b+vPaColJNQf5ZhulWAg1jcOAqr1WF4QEEvnI9vGGyY/rbsNl/WnjNPY AOItPiMZMWtG4y/rC67Mg+T9Ai+OYV4to0nR4I+hB2ndLiWIQsy57Kt9Wa1/uXgJYG0N 2MRg== 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 :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=PZUzC1RepKhcm3ZciLgC2ULBxiEbasPtAPnMBHVURyQ=; b=fBFGMfKC6Aqo77CLMPMx8XxDJB8OEZmSQ2B0MnSpq6J/4t8VvyD/rDNZYOitwGW03e vgVoTww8sIB6KLcDUhMZu/f/8L05kVCsAjAnructShXE23Uw7gmLDSdSx4Q8uMgh4hyn O5GMWqSgamqJc7g+uZ28DNwkp+T4gGc1aqypgvhkldIQrIDqubsiDKKflWHxapj3Rm8e 2zN48OmC3bE62fbKf4iWeHvPKDbp7d5DiLkW8HZFL/OPwYW7WB46sGALAKqO6vHP4iiq UI/KpycP4erjwraoeYkADxiQL6Fbq2kVh9Mogr6jMwj+dQfxdPXUjJalbD1jMEp8zTFF oymQ== X-Received: by 10.50.62.20 with SMTP id u20mr38197igr.11.1379650881031; Thu, 19 Sep 2013 21:21:21 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.50.153.14 with SMTP id vc14ls97057igb.34.gmail; Thu, 19 Sep 2013 21:21:20 -0700 (PDT) X-Received: by 10.66.218.99 with SMTP id pf3mr1933392pac.8.1379650880534; Thu, 19 Sep 2013 21:21:20 -0700 (PDT) Received: from mail-pa0-f53.google.com (mail-pa0-f53.google.com [209.85.220.53]) by gmr-mx.google.com with ESMTPS id hx4si1780888pad.1.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 19 Sep 2013 21:21:20 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.53 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.220.53; Received: by mail-pa0-f53.google.com with SMTP id lb1so230410pab.40 for ; Thu, 19 Sep 2013 21:21:20 -0700 (PDT) X-Gm-Message-State: ALoCoQkNs1t4PFQ562qOw54cn3FCQrOU00vNiEVnvo1VaJQBXUXhMDS8ZgrgLSoSTRdUijWa+OzY X-Received: by 10.66.159.40 with SMTP id wz8mr6487258pab.135.1379650880427; Thu, 19 Sep 2013 21:21:20 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id tz3sm12869868pbc.20.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 19 Sep 2013 21:21:19 -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 1/1] drivers/rtc/rtc-ds1305.c: Remove redundant spi_set_drvdata Date: Fri, 20 Sep 2013 09:51:31 +0530 Message-Id: <1379650891-20955-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 209.85.220.53 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 driver data to NULL upon failure or remove. Signed-off-by: Sachin Kamat --- drivers/rtc/rtc-ds1305.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/rtc/rtc-ds1305.c b/drivers/rtc/rtc-ds1305.c index dd6170a..fa3b092 100644 --- a/drivers/rtc/rtc-ds1305.c +++ b/drivers/rtc/rtc-ds1305.c @@ -787,7 +787,6 @@ static int ds1305_remove(struct spi_device *spi) cancel_work_sync(&ds1305->work); } - spi_set_drvdata(spi, NULL); return 0; }