From patchwork Wed Nov 7 11:40:04 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bastian Hecht X-Patchwork-Id: 1710331 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 78C353FC8F for ; Wed, 7 Nov 2012 11:45:04 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TW41f-0008TB-Pd; Wed, 07 Nov 2012 11:42:31 +0000 Received: from mail-bk0-f49.google.com ([209.85.214.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TW41T-0008RJ-AQ for linux-arm-kernel@lists.infradead.org; Wed, 07 Nov 2012 11:42:20 +0000 Received: by mail-bk0-f49.google.com with SMTP id j4so639305bkw.36 for ; Wed, 07 Nov 2012 03:42:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=TmwzLB3/Ed37h3BUoRcS6mTMF3J2Vv5X1rEn4WaSFtY=; b=u8788DKGsrdyVK1zcN2F66mdA4e+MN+UNcireBAmk9OQbZ580G/N9ltFzm2O9+c0IK jbjLgb24nLpfgoRXNX9e4svG2N/UTMM0bKppI/epjbr9HHQJ1n/3hASSaEz2cGV4+abk eXSl5Tjlr9/6nEgONQWrE3ywzUsExIeiu5J6lun0pGdWTeMommWW4Cj2h/6nU7J935r0 ytpqH1rZp4hJ9QwF8qb/Dtz3JGeUYNHhoAuwz9dR7fty31l6b7LtDYvosxg1yoKcPFn0 RA7Xa4hpXwHFbAskgx3OgvNCWP7zch1dSPO1maMcw/qjJp8dlHSh0Q8CnAYAW2Pxwzly SK5w== Received: by 10.205.123.147 with SMTP id gk19mr1018613bkc.90.1352288536823; Wed, 07 Nov 2012 03:42:16 -0800 (PST) Received: from localhost.localdomain (p4FD24697.dip.t-dialin.net. [79.210.70.151]) by mx.google.com with ESMTPS id r15sm14130206bkw.9.2012.11.07.03.42.15 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 07 Nov 2012 03:42:16 -0800 (PST) From: Bastian Hecht To: spi-devel-general@lists.sourceforge.net Subject: [PATCH 1/4] spi: sh-msiof: Remove unneeded clock name Date: Wed, 7 Nov 2012 12:40:04 +0100 Message-Id: <1352288407-20594-2-git-send-email-hechtb@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1352288407-20594-1-git-send-email-hechtb@gmail.com> References: <1352288407-20594-1-git-send-email-hechtb@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121107_064219_571331_DB6AB5FF X-CRM114-Status: GOOD ( 12.44 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.214.49 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (hechtb[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Magnus Damm , linux-arm-kernel@lists.infradead.org, linux-sh@vger.kernel.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org clk_get() no longer needs a character string for associating the right clock as this is done via the device struct now. Signed-off-by: Bastian Hecht --- drivers/spi/spi-sh-msiof.c | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/spi/spi-sh-msiof.c b/drivers/spi/spi-sh-msiof.c index 1f466bc..96358d0 100644 --- a/drivers/spi/spi-sh-msiof.c +++ b/drivers/spi/spi-sh-msiof.c @@ -597,7 +597,6 @@ static int sh_msiof_spi_probe(struct platform_device *pdev) struct resource *r; struct spi_master *master; struct sh_msiof_spi_priv *p; - char clk_name[16]; int i; int ret; @@ -614,10 +613,9 @@ static int sh_msiof_spi_probe(struct platform_device *pdev) p->info = pdev->dev.platform_data; init_completion(&p->done); - snprintf(clk_name, sizeof(clk_name), "msiof%d", pdev->id); - p->clk = clk_get(&pdev->dev, clk_name); + p->clk = clk_get(&pdev->dev, NULL); if (IS_ERR(p->clk)) { - dev_err(&pdev->dev, "cannot get clock \"%s\"\n", clk_name); + dev_err(&pdev->dev, "cannot get clock\n"); ret = PTR_ERR(p->clk); goto err1; }