From patchwork Fri May 31 07:59:08 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 17314 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f69.google.com (mail-qe0-f69.google.com [209.85.128.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D824725DFA for ; Fri, 31 May 2013 08:13:38 +0000 (UTC) Received: by mail-qe0-f69.google.com with SMTP id 1sf1593772qec.0 for ; Fri, 31 May 2013 01:13:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-beenthere:x-forwarded-to:x-forwarded-for :delivered-to:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=vfH8HLqi+SxSXFXGcH/ZOaKP7twsx56H4L3nNUs7Rwg=; b=KK94hnW/g4MKQVEXHSDVb4xzRQXmdX4OZHk3RiTitD12GyUwQ5xy/v6DepoYl9zQDJ 8QIw3/wr214wlSkl17pcfXURC+I6N2S3NptG1mGxPB/KBrnlYxxJsckTuZx9cwsYLfIZ P/q9YGpSIelvz1d5bVDG0jzbCPwA6hn+MZpQaPahwKhpCqzofcXGO9t/NxNAUz7o9KnD 0bJnWAC3myYjp4hxxE12A9cmdp928uxPxwa8EScrgBkPdpYObQsZFHTkU80ScbZ1OR5u AnaWb2SWmCYWddezEa42tbsD3V1h6Agc4ilWzRASn59z8M/vpztwPyt/LtaJcdtLnE4B ZFMA== X-Received: by 10.224.53.198 with SMTP id n6mr6201939qag.2.1369988018643; Fri, 31 May 2013 01:13:38 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.40.131 with SMTP id x3ls774990qek.40.gmail; Fri, 31 May 2013 01:13:38 -0700 (PDT) X-Received: by 10.58.45.71 with SMTP id k7mr9237427vem.0.1369988018435; Fri, 31 May 2013 01:13:38 -0700 (PDT) Received: from mail-vb0-x232.google.com (mail-vb0-x232.google.com [2607:f8b0:400c:c02::232]) by mx.google.com with ESMTPS id mr2si27674740vcb.10.2013.05.31.01.13.38 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 31 May 2013 01:13:38 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::232 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c02::232; Received: by mail-vb0-f50.google.com with SMTP id w16so830577vbb.23 for ; Fri, 31 May 2013 01:13:38 -0700 (PDT) X-Received: by 10.52.120.113 with SMTP id lb17mr7827884vdb.1.1369988018291; Fri, 31 May 2013 01:13:38 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.229.199 with SMTP id jj7csp40589vcb; Fri, 31 May 2013 01:13:37 -0700 (PDT) X-Received: by 10.68.193.138 with SMTP id ho10mr11741484pbc.163.1369988017461; Fri, 31 May 2013 01:13:37 -0700 (PDT) Received: from mail-pd0-f171.google.com (mail-pd0-f171.google.com [209.85.192.171]) by mx.google.com with ESMTPS id ch5si32377452pad.249.2013.05.31.01.13.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 31 May 2013 01:13:37 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.171 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.192.171; Received: by mail-pd0-f171.google.com with SMTP id z11so1810875pdj.30 for ; Fri, 31 May 2013 01:13:37 -0700 (PDT) X-Received: by 10.66.25.45 with SMTP id z13mr160634paf.151.1369988016992; Fri, 31 May 2013 01:13:36 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id pb5sm45249488pbc.29.2013.05.31.01.13.31 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 31 May 2013 01:13:36 -0700 (PDT) From: Sachin Kamat To: linux-spi@vger.kernel.org Cc: broonie@kernel.org, sachin.kamat@linaro.org, patches@linaro.org, grant.likely@linaro.org Subject: [PATCH 3/3] spi: spi-txx9: Remove redundant platform_set_drvdata() Date: Fri, 31 May 2013 13:29:08 +0530 Message-Id: <1369987148-22970-3-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1369987148-22970-1-git-send-email-sachin.kamat@linaro.org> References: <1369987148-22970-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQl0foLbHZ9EDObB78OyZFtd1DgbXeM3d4YZCbWMNl9xScABhu35Co9w2Zz2XhnQ/rN1Xjjs X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::232 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Setting platform data to NULL is not necessary. Signed-off-by: Sachin Kamat --- drivers/spi/spi-txx9.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/spi/spi-txx9.c b/drivers/spi/spi-txx9.c index cefd956..e9b7681 100644 --- a/drivers/spi/spi-txx9.c +++ b/drivers/spi/spi-txx9.c @@ -419,7 +419,6 @@ exit: clk_disable(c->clk); clk_put(c->clk); } - platform_set_drvdata(dev, NULL); spi_master_put(master); return ret; } @@ -430,7 +429,6 @@ static int txx9spi_remove(struct platform_device *dev) struct txx9spi *c = spi_master_get_devdata(master); spi_unregister_master(master); - platform_set_drvdata(dev, NULL); destroy_workqueue(c->workqueue); clk_disable(c->clk); clk_put(c->clk);