From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8706FC4360C for ; Tue, 8 Oct 2019 06:45:22 +0000 (UTC) Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 64016206C2 for ; Tue, 8 Oct 2019 06:45:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 64016206C2 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=osuosl.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=driverdev-devel-bounces@linuxdriverproject.org Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 3767D87E9C; Tue, 8 Oct 2019 06:45:22 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id J7xvS3pjLA0u; Tue, 8 Oct 2019 06:45:21 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id AB0C587E8E; Tue, 8 Oct 2019 06:45:21 +0000 (UTC) Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 5292C1BF289 for ; Tue, 8 Oct 2019 06:45:20 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 4FBDD8630A for ; Tue, 8 Oct 2019 06:45:20 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id l1VJAuJESm-U for ; Tue, 8 Oct 2019 06:45:19 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pf1-f196.google.com (mail-pf1-f196.google.com [209.85.210.196]) by whitealder.osuosl.org (Postfix) with ESMTPS id E4706862C7 for ; Tue, 8 Oct 2019 06:45:19 +0000 (UTC) Received: by mail-pf1-f196.google.com with SMTP id q21so10195913pfn.11 for ; Mon, 07 Oct 2019 23:45:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=CcheW1vW9hSmABg4YWiwfH2esPJUWBi/6SmHmUcXbdA=; b=csNLLt+L1H7BlCZ52kWNwty+jH2wA2PJqvwNUp5Sf6fuh5/ByjhmznarOz5X3E+WIN jsG4GA8Q0/S/fa4OQOz4mUC2hwwkL67r45314QoBvbm38P+lAW5WVTvB8KjjEUopdBmw LY2fdmR5sybVGaldLQM5JZjPOvgeFeaV0w8RXshBhfItksZfpyccy/wKAHcJCvWJOYga HU9TsWQoig1laho8Ec3T21sBvd/bJzNnYBBv+JjRW5jSREVoC+7+hoxNl3SzMnT6YjSY Tms9SvuxQFMN4Cxdsr55iYZd27noq/KAAn1J/8Kv8+pehtMq5vIfYLskV18Njz37gBgh oJYw== X-Gm-Message-State: APjAAAXeNHB/+bQwOkckK2K4hJqZ44YsJmHk7KS8I4KxgvtByHE5FFsf uubR7rU23dVZVgPP7tQxZ62KyhFM X-Google-Smtp-Source: APXvYqxYL3C1doH44xTNDN/ljFD8+G18oKO+obxZAKtv0YQXq38cgNjtZUy5/5dSfuG96he9W9vKag== X-Received: by 2002:a17:90a:2ec5:: with SMTP id h5mr3943930pjs.87.1570517119541; Mon, 07 Oct 2019 23:45:19 -0700 (PDT) Received: from localhost.localdomain ([183.83.78.173]) by smtp.gmail.com with ESMTPSA id k5sm13156500pgo.45.2019.10.07.23.45.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 07 Oct 2019 23:45:19 -0700 (PDT) From: hariprasad@osuosl.org, Kelam@osuosl.org, hariprasad.kelam@gmail.com To: Subject: [PATCH] staging: emxx_udc: make use of devm_platform_ioremap_resource Date: Tue, 8 Oct 2019 12:14:27 +0530 Message-Id: <1570517072-29201-1-git-send-email-hariprasad.kelam@gmail.com> X-Mailer: git-send-email 2.7.4 X-BeenThere: driverdev-devel@linuxdriverproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Driver Project Developer List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devel@driverdev.osuosl.org, Saiyam Doshi , Hariprasad Kelam , Payal Kshirsagar , Nishad Kamdar , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Daniela Mormocea , Cristian Sicilia , Nathan Chancellor MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: driverdev-devel-bounces@linuxdriverproject.org Sender: "devel" From: Hariprasad Kelam fix below issue reported by coccicheck drivers/staging//emxx_udc/emxx_udc.c:3092:1-10: WARNING: Use devm_platform_ioremap_resource for mmio_base Signed-off-by: Hariprasad Kelam --- drivers/staging/emxx_udc/emxx_udc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/emxx_udc/emxx_udc.c b/drivers/staging/emxx_udc/emxx_udc.c index 147481b..9e0c19e 100644 --- a/drivers/staging/emxx_udc/emxx_udc.c +++ b/drivers/staging/emxx_udc/emxx_udc.c @@ -3078,7 +3078,6 @@ static int nbu2ss_drv_probe(struct platform_device *pdev) { int status = -ENODEV; struct nbu2ss_udc *udc; - struct resource *r; int irq; void __iomem *mmio_base; @@ -3088,8 +3087,7 @@ static int nbu2ss_drv_probe(struct platform_device *pdev) platform_set_drvdata(pdev, udc); /* require I/O memory and IRQ to be provided as resources */ - r = platform_get_resource(pdev, IORESOURCE_MEM, 0); - mmio_base = devm_ioremap_resource(&pdev->dev, r); + mmio_base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(mmio_base)) return PTR_ERR(mmio_base); -- 2.7.4 _______________________________________________ devel mailing list devel@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel