From patchwork Wed Jun 4 14:17:09 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Shiyan X-Patchwork-Id: 4294571 Return-Path: X-Original-To: patchwork-linux-spi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 4FC939F326 for ; Wed, 4 Jun 2014 14:42:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 83BAA201C7 for ; Wed, 4 Jun 2014 14:42:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B16D0201BA for ; Wed, 4 Jun 2014 14:42:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751630AbaFDOmT (ORCPT ); Wed, 4 Jun 2014 10:42:19 -0400 Received: from fallback8.mail.ru ([94.100.181.110]:46590 "EHLO fallback8.mail.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751510AbaFDOmT (ORCPT ); Wed, 4 Jun 2014 10:42:19 -0400 Received: from smtp17.mail.ru (smtp17.mail.ru [94.100.176.154]) by fallback8.mail.ru (mPOP.Fallback_MX) with ESMTP id 52CDE5BC3828 for ; Wed, 4 Jun 2014 18:17:50 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From; bh=9mZMgi1RNrjcjXE/J+GjlGgS4JOjVLdhbNVFcTzJdRk=; b=dz3BGbcuucngxAhOBTLZic3huyF1aK3fE87jiuzTpGVoeTpPewZ5z1uqB/6wpY2mVXTy0HRw9WGAegx+HaPaZ0zhqW39qQ19O6jMP6zhTBOBg/I4Zi4kAU+zrElBOUltazXkSNVquXsTrZdJDj64FgWwOKopwE9Ff9s8HkhUHo8=; Received: from [5.18.98.7] (port=34202 helo=shc.zet) by smtp17.mail.ru with esmtpa (envelope-from ) id 1WsC0K-0001JJ-Q3; Wed, 04 Jun 2014 18:17:28 +0400 From: Alexander Shiyan To: linux-spi@vger.kernel.org Cc: Mark Brown , Alexander Shiyan Subject: [PATCH 4/4] spi: sh-msiof: Remove unnecessary platform_set_drvdata() Date: Wed, 4 Jun 2014 18:17:09 +0400 Message-Id: <1401891429-14271-4-git-send-email-shc_work@mail.ru> X-Mailer: git-send-email 1.8.5.5 In-Reply-To: <1401891429-14271-1-git-send-email-shc_work@mail.ru> References: <1401891429-14271-1-git-send-email-shc_work@mail.ru> 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-sh-msiof.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/spi/spi-sh-msiof.c b/drivers/spi/spi-sh-msiof.c index 45b0914..83c4370 100644 --- a/drivers/spi/spi-sh-msiof.c +++ b/drivers/spi/spi-sh-msiof.c @@ -680,8 +680,6 @@ static int sh_msiof_spi_probe(struct platform_device *pdev) p = spi_master_get_devdata(master); - platform_set_drvdata(pdev, p); - of_id = of_match_device(sh_msiof_match, &pdev->dev); if (of_id) { p->chipdata = of_id->data;