From patchwork Fri Oct 2 02:22:32 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 51275 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n922R28u007207 for ; Fri, 2 Oct 2009 02:27:13 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754689AbZJBC1I (ORCPT ); Thu, 1 Oct 2009 22:27:08 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754535AbZJBC1H (ORCPT ); Thu, 1 Oct 2009 22:27:07 -0400 Received: from mail-ew0-f211.google.com ([209.85.219.211]:61326 "EHLO mail-ew0-f211.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754689AbZJBC1G (ORCPT ); Thu, 1 Oct 2009 22:27:06 -0400 Received: by mail-ew0-f211.google.com with SMTP id 7so778329ewy.17 for ; Thu, 01 Oct 2009 19:27:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:date:message-id :in-reply-to:references:subject; bh=8Jra2Xx//B9ivQn+8jXMNFhkWj4BAx7/52fyZO4Xbew=; b=YZrE/ChlpN6BC1uv2+8c8+qo3XSVcDXofyds3mmHethnCu272gf/R03+JYSGGYgpfW R3+s0xpUiCt8rYaOzlJtGUtfxjmkvWJlFRTmWjGoFvbttZQmEewFT0Q/8TCOG1qURKfN skBSiqHkSOdwdXL+S8O9s6xhQ52SttKN8gNOQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:date:message-id:in-reply-to:references:subject; b=mzRBxVphloYrt4hlO9gSkdbhKguQN8HmrjJtwOE5H81PJQr02sP/HJ+w0vRua/qiqo NGlYtJ6PD9C5nElJmAKa4NHqDGYskJWEeqxDcmR0sFNyy4OB2xKlAsyz6Pt9V4GvdGgs KLsbLFK6nBDMp+VykjZN3cpmG0mLVyfJlBcRo= Received: by 10.211.146.5 with SMTP id y5mr2267814ebn.41.1254450430126; Thu, 01 Oct 2009 19:27:10 -0700 (PDT) Received: from rxone.opensource.se (49.14.32.202.bf.2iij.net [202.32.14.49]) by mx.google.com with ESMTPS id 7sm423232eyb.4.2009.10.01.19.27.06 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 01 Oct 2009 19:27:09 -0700 (PDT) From: Magnus Damm To: linux-sh@vger.kernel.org Cc: akpm@linux-foundation.org, linux-mmc@vger.kernel.org, ian@mnementh.co.uk, lethal@linux-sh.org, Magnus Damm , g.liakhovetski@gmx.de Date: Fri, 02 Oct 2009 11:22:32 +0900 Message-Id: <20091002022232.8215.10549.sendpatchset@rxone.opensource.se> In-Reply-To: <20091002022158.8215.58317.sendpatchset@rxone.opensource.se> References: <20091002022158.8215.58317.sendpatchset@rxone.opensource.se> Subject: [PATCH 03/07] mmc: Remove const from tmio-mmc platform data Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org --- 0008/drivers/mfd/sh_mobile_sdhi.c +++ work/drivers/mfd/sh_mobile_sdhi.c 2009-10-02 09:58:40.000000000 +0900 @@ -84,9 +84,7 @@ static int __init sh_mobile_sdhi_probe(s } clk_enable(priv->clk); - - /* FIXME: silly const unsigned int hclk */ - *(unsigned int *)&priv->mmc_data.hclk = clk_get_rate(priv->clk); + priv->mmc_data.hclk = clk_get_rate(priv->clk); memcpy(&priv->cell_mmc, &sh_mobile_sdhi_cell, sizeof(priv->cell_mmc)); priv->cell_mmc.driver_data = &priv->mmc_data; --- 0002/include/linux/mfd/tmio.h +++ work/include/linux/mfd/tmio.h 2009-10-02 09:55:50.000000000 +0900 @@ -53,7 +53,7 @@ void tmio_core_mmc_clk_div(void __iomem * data for the MMC controller */ struct tmio_mmc_data { - const unsigned int hclk; + unsigned int hclk; void (*set_pwr)(struct platform_device *host, int state); void (*set_no_clk_div)(struct platform_device *host, int state); };