From patchwork Wed Jun 4 14:17:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Shiyan X-Patchwork-Id: 4294351 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 23B03BEEA7 for ; Wed, 4 Jun 2014 14:23:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 73C5E201F7 for ; Wed, 4 Jun 2014 14:23:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D1B73201F5 for ; Wed, 4 Jun 2014 14:23:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753506AbaFDOXT (ORCPT ); Wed, 4 Jun 2014 10:23:19 -0400 Received: from fallback3.mail.ru ([94.100.181.189]:43142 "EHLO fallback3.mail.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753420AbaFDOXT (ORCPT ); Wed, 4 Jun 2014 10:23:19 -0400 Received: from smtp17.mail.ru (smtp17.mail.ru [94.100.176.154]) by fallback3.mail.ru (mPOP.Fallback_MX) with ESMTP id 5CAFD11937997 for ; Wed, 4 Jun 2014 18:17:44 +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=njgZ7BBr/EZhKNI811sNCdLDO7OK0JSHhjMq1xBERXA=; b=OFuTfxxO53ivxsprjc80mcTpDXG/oHWwagHgNSzmyuI9AS6Sr1Tro1Q3wEqLHsODrIA7L/pr69CvJxm6suT820eT8xEj2N5GR48lvM0PdYBM7c0zACHY9icq1B0InoHegDl9joLHmieNnbgEl64LMmNaZe8hAaD3+h/PqGrbUTU=; Received: from [5.18.98.7] (port=34202 helo=shc.zet) by smtp17.mail.ru with esmtpa (envelope-from ) id 1WsC0F-0001JJ-U8; Wed, 04 Jun 2014 18:17:24 +0400 From: Alexander Shiyan To: linux-spi@vger.kernel.org Cc: Mark Brown , Alexander Shiyan Subject: [PATCH 3/4] spi: omap-100k: Remove unnecessary platform_set_drvdata() Date: Wed, 4 Jun 2014 18:17:08 +0400 Message-Id: <1401891429-14271-3-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-omap-100k.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/spi/spi-omap-100k.c b/drivers/spi/spi-omap-100k.c index e7ffcde..5e91858 100644 --- a/drivers/spi/spi-omap-100k.c +++ b/drivers/spi/spi-omap-100k.c @@ -420,8 +420,6 @@ static int omap1_spi100k_probe(struct platform_device *pdev) master->min_speed_hz = OMAP1_SPI100K_MAX_FREQ/(1<<16); master->max_speed_hz = OMAP1_SPI100K_MAX_FREQ; - platform_set_drvdata(pdev, master); - spi100k = spi_master_get_devdata(master); /*