From patchwork Wed Nov 28 09:24:21 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 1814511 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 1E7C03FD1A for ; Wed, 28 Nov 2012 09:24:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753734Ab2K1JY0 (ORCPT ); Wed, 28 Nov 2012 04:24:26 -0500 Received: from moutng.kundenserver.de ([212.227.126.187]:59662 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753625Ab2K1JYY (ORCPT ); Wed, 28 Nov 2012 04:24:24 -0500 Received: from axis700.grange (dslb-178-006-249-114.pools.arcor-ip.net [178.6.249.114]) by mrelayeu.kundenserver.de (node=mreu2) with ESMTP (Nemesis) id 0MgJKE-1TqDBb2oZa-00NF1M; Wed, 28 Nov 2012 10:24:21 +0100 Received: by axis700.grange (Postfix, from userid 1000) id 567BE40B99; Wed, 28 Nov 2012 10:24:21 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by axis700.grange (Postfix) with ESMTP id 5463B40B98; Wed, 28 Nov 2012 10:24:21 +0100 (CET) Date: Wed, 28 Nov 2012 10:24:21 +0100 (CET) From: Guennadi Liakhovetski X-X-Sender: lyakh@axis700.grange To: linux-mmc@vger.kernel.org cc: linux-sh@vger.kernel.org, Chris Ball Subject: [PATCH] mmc: sh_mobile_sdhi: remove unneeded clock connection ID Message-ID: MIME-Version: 1.0 X-Provags-ID: V02:K0:N+yonJS+Jf5Npw/n4LlOJMw+OMl4WMf+XiZaP5DxSJE i80t/MKqTafVAbqSikeCmSP/dFso0Hj4AlN/lFOq7Dfvj5AS5W kVtbfB7VSRtWrlj24dZvTsfDLDsf5XyU+WOGmlhdgOX0MhiDU+ bm6GaYgaOoaj/WcDbiZowjetzpJyFudfbN/8uvvKqbR4YF9Gzt oK0uZYrJk/LBZr0A/nGCC2ihbZzFBE0KR9K4SGb9TqSqpFtR8S wX4rRcCIe4YbYC3lkX/J462jN4wg0N4juUmxKzf+jdD7OOBN1v 0iHPDthsKzkHjMB/tRSzqrUmPnzy0xhnuvaOJJ17hVM/xa9Yrj xI2BeFNsgP9pyVrt0fAn9XxQj+Wpt5Y2x/KpVNzHM1QZP4Efw4 4EH7nMsUe1WUw== Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org SDHI only uses one clock, all ARM and SuperH platform register SDHI clock lookup entries with no connection ID, hence it can be dropped in the driver too. Signed-off-by: Guennadi Liakhovetski Reviewed-by: Simon Horman --- drivers/mmc/host/sh_mobile_sdhi.c | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/host/sh_mobile_sdhi.c b/drivers/mmc/host/sh_mobile_sdhi.c index 0bdc146..22ac8e7 100644 --- a/drivers/mmc/host/sh_mobile_sdhi.c +++ b/drivers/mmc/host/sh_mobile_sdhi.c @@ -123,7 +123,6 @@ static int __devinit sh_mobile_sdhi_probe(struct platform_device *pdev) struct tmio_mmc_data *mmc_data; struct sh_mobile_sdhi_info *p = pdev->dev.platform_data; struct tmio_mmc_host *host; - char clk_name[8]; int irq, ret, i = 0; bool multiplexed_isr = true; @@ -144,11 +143,10 @@ static int __devinit sh_mobile_sdhi_probe(struct platform_device *pdev) } } - snprintf(clk_name, sizeof(clk_name), "sdhi%d", pdev->id); - priv->clk = clk_get(&pdev->dev, clk_name); + priv->clk = clk_get(&pdev->dev, NULL); if (IS_ERR(priv->clk)) { - dev_err(&pdev->dev, "cannot get clock \"%s\"\n", clk_name); ret = PTR_ERR(priv->clk); + dev_err(&pdev->dev, "cannot get clock: %d\n", ret); goto eclkget; }