From patchwork Thu Nov 8 08:35:33 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaehoon Chung X-Patchwork-Id: 1714481 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 59FD53FC8F for ; Thu, 8 Nov 2012 08:35:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753111Ab2KHIft (ORCPT ); Thu, 8 Nov 2012 03:35:49 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:56570 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751979Ab2KHIfs (ORCPT ); Thu, 8 Nov 2012 03:35:48 -0500 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MD500II1UJGAMI0@mailout3.samsung.com> for linux-mmc@vger.kernel.org; Thu, 08 Nov 2012 17:35:48 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.46]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 55.84.01231.3EE6B905; Thu, 08 Nov 2012 17:35:47 +0900 (KST) X-AuditID: cbfee61a-b7fa66d0000004cf-b2-509b6ee3ec04 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id E4.84.01231.3EE6B905; Thu, 08 Nov 2012 17:35:47 +0900 (KST) Received: from [10.90.51.55] by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MD500LSSUJN2IA0@mmp1.samsung.com> for linux-mmc@vger.kernel.org; Thu, 08 Nov 2012 17:35:47 +0900 (KST) Message-id: <509B6ED5.6070101@samsung.com> Date: Thu, 08 Nov 2012 17:35:33 +0900 From: Jaehoon Chung User-Agent: Mozilla/5.0 (X11; Linux i686; rv:16.0) Gecko/20121011 Thunderbird/16.0.1 MIME-version: 1.0 To: linux-mmc Cc: Chris Ball , Kyungmin Park , Will Newton , James Hogan , Seungwon Jeon Subject: [PATCH v3 4/4] mmc: dw-mmc: remove complier warning Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7bit DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuphkeLIzCtJLcpLzFFi42I5/e+Znu7jvNkBBv9OWVsc+d/P6MDo8XmT XABjFJdNSmpOZllqkb5dAlfGxY8NTAVPxCv67h9ibmBcJtLFyMkhIWAiMeXERHYIW0ziwr31 bF2MXBxCAssYJSbf6mCFKbpxZh5UYhGjxMcJV1khnHYmieVz1zCCVPEKaEn8OLGGCcRmEVCV OHF+ElicTUBHYvu340BxDg5RgTCJnZvTIcoFJX5MvscCYosIaEp0bl8JtoBZ4ACjxN6PX8FO EhawkTj49STYTGagOftbp7FB2PISm9e8ZYbYJSDxbfIhFpD5EgKyEpsOMIPMkRB4zSaxb989 qA8kJQ6uuMEygVFkFpLds5CMnYVk7AJG5lWMoqkFyQXFSem5hnrFibnFpXnpesn5uZsYIUEu tYNxZYPFIUYBDkYlHl4NydkBQqyJZcWVuYcYJTiYlUR4lzkDhXhTEiurUovy44tKc1KLDzH6 AF07kVlKNDkfGIF5JfGGxgbGhoaWhmamlqYGOISVxHmbPVIChATSE0tSs1NTC1KLYMYxcXBK NTDKddwo+r0m+sxnL/tWMw0J37uF7pmn923PNt/rsXDf69KpD08mffX4PzedN7h0nZ3KVBWr mSf8TBcz2D35ebvKWUYrc5prbJP59rhuGfm3PMe9GotOrZw3q9fv1bRZb/qSa2M8+i9t/mP5 vsZ7esh9x307tiiJPXlhXMT9psDYz5xdKVri2FwlluKMREMt5qLiRAAdOaGVnwIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrNIsWRmVeSWpSXmKPExsVy+t9jAd3HebMDDE78N7M48r+f0YHR4/Mm uQDGqAZGm4zUxJTUIoXUvOT8lMy8dFsl7+B453hTMwNDXUNLC3MlhbzE3FRbJRefAF23zByg qUoKZYk5pUChgMTiYiV9O0wTQkPcdC1gGiN0fUOC4HqMDNBAwjrGjIsfG5gKnohX9N0/xNzA uEyki5GTQ0LAROLGmXlsELaYxIV764FsLg4hgUWMEh8nXGWFcNqZJJbPXcMIUsUroCXx48Qa JhCbRUBV4sT5SWBxNgEdie3fjgPFOThEBcIkdm5OhygXlPgx+R4LiC0ioCnRuX0l2AJmgQOM Ens/fmUHSQgL2Egc/HoSbCYz0Jz9rdPYIGx5ic1r3jJPYOSbhWTWLCRls5CULWBkXsUomlqQ XFCclJ5rqFecmFtcmpeul5yfu4kRHEPPpHYwrmywOMQowMGoxMOrITk7QIg1say4MvcQowQH s5II7zJnoBBvSmJlVWpRfnxRaU5q8SFGH6BPJzJLiSbnA+M7ryTe0NjEzMjSyMzYxNzYGIew kjhvs0dKgJBAemJJanZqakFqEcw4Jg5OqQbGw856LaXfMxT2bri+w6lPbMK0v6kcelvkCj+0 bu3aW3v31GvJe3PYi587K07S35nQJem1q671U22IZLv81Q3/zDIWcIrulRN8eOOu17vU7mUh 6dJn5Ds4vvLc+Jl873bt1j1cuklJh45d7p04RVv17IIOM6E7/5YIXl/nfFtxrt/i2w+2bTut qsRSnJFoqMVcVJwIADV79iXOAgAA X-CFilter-Loop: Reflected Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org drivers/mmc/host/dw_mmc.c: In function 'dw_mci_prepare_command': drivers/mmc/host/dw_mmc.c:256:37: warning: initialization discards 'const' qualifier from pointer target type [enabled by default] drivers/mmc/host/dw_mmc.c: In function 'dw_mci_set_ios': drivers/mmc/host/dw_mmc.c:805:37: warning: initialization discards 'const' qualifier from pointer target type [enabled by default] drivers/mmc/host/dw_mmc.c: In function 'dw_mci_init_slot': drivers/mmc/host/dw_mmc.c:1849:37: warning: initialization discards 'const' qualifier from pointer target type [enabled by default] drivers/mmc/host/dw_mmc.c: In function 'dw_mci_parse_dt': drivers/mmc/host/dw_mmc.c:2049:37: warning: initialization discards 'const' qualifier from pointer target type [enabled by default] drivers/mmc/host/dw_mmc.c: In function 'dw_mci_probe': drivers/mmc/host/dw_mmc.c:2095:37: warning: initialization discards 'const' qualifier from pointer target type [enabled by default] Signed-off-by: Jaehoon Chung Acked-by: James Hogan --- drivers/mmc/host/dw_mmc.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c index 9704b09..76c21e4 100644 --- a/drivers/mmc/host/dw_mmc.c +++ b/drivers/mmc/host/dw_mmc.c @@ -253,7 +253,7 @@ static u32 dw_mci_prepare_command(struct mmc_host *mmc, struct mmc_command *cmd) { struct mmc_data *data; struct dw_mci_slot *slot = mmc_priv(mmc); - struct dw_mci_drv_data *drv_data = slot->host->drv_data; + const struct dw_mci_drv_data *drv_data = slot->host->drv_data; u32 cmdr; cmd->error = -EINPROGRESS; @@ -802,7 +802,7 @@ static void dw_mci_request(struct mmc_host *mmc, struct mmc_request *mrq) static void dw_mci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) { struct dw_mci_slot *slot = mmc_priv(mmc); - struct dw_mci_drv_data *drv_data = slot->host->drv_data; + const struct dw_mci_drv_data *drv_data = slot->host->drv_data; u32 regs; switch (ios->bus_width) { @@ -1846,7 +1846,7 @@ static int dw_mci_init_slot(struct dw_mci *host, unsigned int id) { struct mmc_host *mmc; struct dw_mci_slot *slot; - struct dw_mci_drv_data *drv_data = host->drv_data; + const struct dw_mci_drv_data *drv_data = host->drv_data; int ctrl_id, ret; u8 bus_width; @@ -2046,7 +2046,7 @@ static struct dw_mci_board *dw_mci_parse_dt(struct dw_mci *host) struct dw_mci_board *pdata; struct device *dev = host->dev; struct device_node *np = dev->of_node; - struct dw_mci_drv_data *drv_data = host->drv_data; + const struct dw_mci_drv_data *drv_data = host->drv_data; int idx, ret; pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); @@ -2092,7 +2092,7 @@ static struct dw_mci_board *dw_mci_parse_dt(struct dw_mci *host) int dw_mci_probe(struct dw_mci *host) { - struct dw_mci_drv_data *drv_data = host->drv_data; + const struct dw_mci_drv_data *drv_data = host->drv_data; int width, i, ret = 0; u32 fifo_size; int init_slots = 0;