From patchwork Wed Jun 4 14:17:07 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Shiyan X-Patchwork-Id: 4294341 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 2EEE19F1D6 for ; Wed, 4 Jun 2014 14:23:03 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3203C201F7 for ; Wed, 4 Jun 2014 14:23:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E8596201F5 for ; Wed, 4 Jun 2014 14:23:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753660AbaFDOXA (ORCPT ); Wed, 4 Jun 2014 10:23:00 -0400 Received: from fallback6.mail.ru ([94.100.181.147]:54465 "EHLO fallback6.mail.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753956AbaFDOXA (ORCPT ); Wed, 4 Jun 2014 10:23:00 -0400 X-Greylist: delayed 314 seconds by postgrey-1.27 at vger.kernel.org; Wed, 04 Jun 2014 10:22:59 EDT Received: from smtp17.mail.ru (smtp17.mail.ru [94.100.176.154]) by fallback6.mail.ru (mPOP.Fallback_MX) with ESMTP id AC02D4180CF5 for ; Wed, 4 Jun 2014 18:17:42 +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=2Kx/GRjI1fsKIq13dTSkF840N9NdlQoC4ZGkqL1T0iI=; b=AjMgXXHWrVcwkEDQg+d1tDgBL6opNgtGQER9xiEWE0d99HAkXiJ01h4kuVJFL7vspryI12Gx66gTJH0QbFD0XrcJ0lhJBjwivA3FK0xkzCIgVNmD8uEMb5d/9k2SwPAr/qrG+6W/2TEzo4M91gAsEki5DvAItwZnPOD2aqJqOBE=; Received: from [5.18.98.7] (port=34202 helo=shc.zet) by smtp17.mail.ru with esmtpa (envelope-from ) id 1WsC0F-0001JJ-Jq; Wed, 04 Jun 2014 18:17:19 +0400 From: Alexander Shiyan To: linux-spi@vger.kernel.org Cc: Mark Brown , Alexander Shiyan Subject: [PATCH 2/4] spi: falcon: Remove unnecessary platform_set_drvdata() Date: Wed, 4 Jun 2014 18:17:07 +0400 Message-Id: <1401891429-14271-2-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-falcon.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/spi/spi-falcon.c b/drivers/spi/spi-falcon.c index ba441ad..f73b300 100644 --- a/drivers/spi/spi-falcon.c +++ b/drivers/spi/spi-falcon.c @@ -425,8 +425,6 @@ static int falcon_sflash_probe(struct platform_device *pdev) master->unprepare_transfer_hardware = falcon_sflash_unprepare_xfer; master->dev.of_node = pdev->dev.of_node; - platform_set_drvdata(pdev, priv); - ret = devm_spi_register_master(&pdev->dev, master); if (ret) spi_master_put(master);