From patchwork Wed Dec 12 11:54:46 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bastian Hecht X-Patchwork-Id: 1865591 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id C9356DF2EE for ; Wed, 12 Dec 2012 11:54:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752255Ab2LLLys (ORCPT ); Wed, 12 Dec 2012 06:54:48 -0500 Received: from mail-ea0-f174.google.com ([209.85.215.174]:45709 "EHLO mail-ea0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751776Ab2LLLyr (ORCPT ); Wed, 12 Dec 2012 06:54:47 -0500 Received: by mail-ea0-f174.google.com with SMTP id e13so196695eaa.19 for ; Wed, 12 Dec 2012 03:54:46 -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; bh=D81o3R71FxJmFXOV/aYe+NyKu8e9bV1+J4DlbPd25Ds=; b=pEl8Fo9BqafgMIi/x9jRM6bek+PaxAOho3wbAzmncvj+lG28nsqFkIX4ChtCQLe/MC a/mrrUIxPkdil5xc2Q8fstTPzlJB9LBHgeIYOoacG2OHeINTr7IMx8oAAAcvOZjwQykK t8uVBPafKQY1DJpQvmFynlyIt/Fyp1AKd8ZDBALBhM3zB+faVVr5+QFcWECF8RGdiElT 0AXusbPo8BG44uGGUs7LQJnZX8p+8NZ+O1n9znTqQ+sU9aqi8tKa0t3ozay14N2O71TN zwwY8pfbtu+xMQAN4VCEIIS/cAcDuSHHjUUvQj5uG9sum+QMKYOvkkM92OjNU1EEXiZO H8cQ== Received: by 10.14.223.135 with SMTP id v7mr2223796eep.41.1355313286293; Wed, 12 Dec 2012 03:54:46 -0800 (PST) Received: from localhost.localdomain (p4FD23602.dip.t-dialin.net. [79.210.54.2]) by mx.google.com with ESMTPS id w3sm55551445eel.17.2012.12.12.03.54.44 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 12 Dec 2012 03:54:45 -0800 (PST) From: Bastian Hecht To: spi-devel-general@lists.sourceforge.net, Grant Likely Cc: "linux-arm-kernel@lists.infradead.org" , linux-sh@vger.kernel.org, Magnus Damm Subject: [PATCH 1/4 v2] spi: sh-msiof: Remove unneeded clock name Date: Wed, 12 Dec 2012 12:54:46 +0100 Message-Id: <1355313289-29769-1-git-send-email-hechtb+renesas@gmail.com> X-Mailer: git-send-email 1.7.9.5 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org From: Bastian Hecht 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 --- v2: no changes drivers/spi/spi-sh-msiof.c | 6 ++---- 1 file 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; }