From patchwork Sun Sep 21 16:03:40 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudip Mukherjee X-Patchwork-Id: 4944041 X-Patchwork-Delegate: tiwai@suse.de Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 5F1FEBEEA5 for ; Sun, 21 Sep 2014 16:05:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A17DB20212 for ; Sun, 21 Sep 2014 16:05:40 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 6E7442021B for ; Sun, 21 Sep 2014 16:05:39 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 878ED265558; Sun, 21 Sep 2014 18:05:38 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 8B9DA265062; Sun, 21 Sep 2014 18:04:11 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 90090261A83; Sun, 21 Sep 2014 18:04:09 +0200 (CEST) Received: from mail-pd0-f179.google.com (mail-pd0-f179.google.com [209.85.192.179]) by alsa0.perex.cz (Postfix) with ESMTP id CEC97261A60 for ; Sun, 21 Sep 2014 18:04:04 +0200 (CEST) Received: by mail-pd0-f179.google.com with SMTP id ft15so2867129pdb.38 for ; Sun, 21 Sep 2014 09:04:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ZLKNUWQnYqmJleppSmlmr3oLaqAMxVVepsqYxyxKego=; b=xwsRfOk35gjBiGvVlt0vqHOkz94UG1XsGpRTRZbi59oXUcgHxSXDxzLBGnlVvC2SKA PD8xVbpclSB4FxihV8w3q2a4tr2IwNWOlgSDl/iet75VSiEsmVeanxFkwFIlYw05kFJ+ MadI1zc3k/1MxrzZ0BVr3ugXBtFraKcEpUatCZvVtGhCPT5Iilvh8GkBr9F2EXKT4IWJ d5HJlGq9HZtAYWG0Or2cfEpY96ZbKVR2Cq/C79AjfuM/mde/ZjlesKPoOCY4Q6nCj5Jp NYNBoNbPhbK8wAFimZKz4uVY+SC+i9Kr/SejUa/SZCtQKTYI864Eh4015VAXHIFTaYGe xOIw== X-Received: by 10.70.98.201 with SMTP id ek9mr5288821pdb.150.1411315443644; Sun, 21 Sep 2014 09:04:03 -0700 (PDT) Received: from localhost.localdomain ([122.169.152.214]) by mx.google.com with ESMTPSA id nl2sm7053380pdb.83.2014.09.21.09.04.01 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 21 Sep 2014 09:04:03 -0700 (PDT) From: Sudip Mukherjee To: Jaroslav Kysela , Takashi Iwai Date: Sun, 21 Sep 2014 21:33:40 +0530 Message-Id: <1411315421-24138-4-git-send-email-sudipm.mukherjee@gmail.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1411315421-24138-1-git-send-email-sudipm.mukherjee@gmail.com> References: <1411315421-24138-1-git-send-email-sudipm.mukherjee@gmail.com> Cc: alsa-devel@alsa-project.org, Sudip Mukherjee , linux-kernel@vger.kernel.org Subject: [alsa-devel] [PATCH v3 4/5] sound: pci: ctxfi: cthw20k2.c: sparse warning of incorrect type X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP fixed sparse warning of incorrect type (different address spaces) Signed-off-by: Sudip Mukherjee --- sound/pci/ctxfi/cthw20k2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/pci/ctxfi/cthw20k2.c b/sound/pci/ctxfi/cthw20k2.c index 665eeb2..25ef60b 100644 --- a/sound/pci/ctxfi/cthw20k2.c +++ b/sound/pci/ctxfi/cthw20k2.c @@ -2112,7 +2112,7 @@ static int hw_card_shutdown(struct hw *hw) hw->irq = -1; if (hw->mem_base) - iounmap((void *)hw->mem_base); + iounmap((void __iomem *)hw->mem_base); hw->mem_base = (unsigned long)NULL; @@ -2234,12 +2234,12 @@ static int hw_resume(struct hw *hw, struct card_conf *info) static u32 hw_read_20kx(struct hw *hw, u32 reg) { - return readl((void *)(hw->mem_base + reg)); + return readl((void __iomem *)(hw->mem_base + reg)); } static void hw_write_20kx(struct hw *hw, u32 reg, u32 data) { - writel(data, (void *)(hw->mem_base + reg)); + writel(data, (void __iomem *)(hw->mem_base + reg)); } static struct hw ct20k2_preset = {