From patchwork Wed Jun 4 14:17:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Shiyan X-Patchwork-Id: 4294361 Return-Path: X-Original-To: patchwork-linux-spi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 2647BBEEA7 for ; Wed, 4 Jun 2014 14:24:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 68BC020212 for ; Wed, 4 Jun 2014 14:24:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7E343201F7 for ; Wed, 4 Jun 2014 14:24:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752567AbaFDOYm (ORCPT ); Wed, 4 Jun 2014 10:24:42 -0400 Received: from fallback7.mail.ru ([94.100.181.128]:39241 "EHLO fallback7.mail.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751508AbaFDOYl (ORCPT ); Wed, 4 Jun 2014 10:24:41 -0400 Received: from smtp17.mail.ru (smtp17.mail.ru [94.100.176.154]) by fallback7.mail.ru (mPOP.Fallback_MX) with ESMTP id 0F935105747B2 for ; Wed, 4 Jun 2014 18:17:37 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=Message-Id:Date:Subject:Cc:To:From; bh=7qY0C38IbhDIPRwpFDrunzk+g3CPIr8IrE3Nez7gTTc=; b=B4TyhYqB93FJt7t75izxIavdu3GCVYBAdDsYiyBfKnmhuaRmg5UkJDFaJVAaF84PUh49/Y08zM8veBFykNxWJmtUu2T2IMYtz05vFtUzNjbAFMcmGm/uynIgMhQup+CPMkAFDJQLqLkmRSKnbsgErQFhF0d4KJ6wYOIo/aPAwLM=; Received: from [5.18.98.7] (port=34202 helo=shc.zet) by smtp17.mail.ru with esmtpa (envelope-from ) id 1WsC0C-0001JJ-Be; Wed, 04 Jun 2014 18:17:19 +0400 From: Alexander Shiyan To: linux-spi@vger.kernel.org Cc: Mark Brown , Alexander Shiyan Subject: [PATCH 1/4] spi: clps711x: Remove unnecessary platform_set_drvdata() Date: Wed, 4 Jun 2014 18:17:06 +0400 Message-Id: <1401891429-14271-1-git-send-email-shc_work@mail.ru> X-Mailer: git-send-email 1.8.5.5 X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Mras: Ok Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RDNS_NONE, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Drop call to platform_set_drvdata() as driver data is not used anywhere in the driver. Signed-off-by: Alexander Shiyan --- drivers/spi/spi-clps711x.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/spi/spi-clps711x.c b/drivers/spi/spi-clps711x.c index 4cd62f6..ce538da 100644 --- a/drivers/spi/spi-clps711x.c +++ b/drivers/spi/spi-clps711x.c @@ -184,8 +184,6 @@ static int spi_clps711x_probe(struct platform_device *pdev) } master->max_speed_hz = clk_get_rate(hw->spi_clk); - platform_set_drvdata(pdev, master); - hw->syscon = syscon_regmap_lookup_by_pdevname("syscon.3"); if (IS_ERR(hw->syscon)) { ret = PTR_ERR(hw->syscon);