From patchwork Mon Dec 2 03:39:34 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 3263571 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 2E7759F373 for ; Mon, 2 Dec 2013 03:39:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 224282031C for ; Mon, 2 Dec 2013 03:39:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 174F6202E6 for ; Mon, 2 Dec 2013 03:39:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752439Ab3LBDjt (ORCPT ); Sun, 1 Dec 2013 22:39:49 -0500 Received: from mail-qa0-f48.google.com ([209.85.216.48]:44974 "EHLO mail-qa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752547Ab3LBDjt (ORCPT ); Sun, 1 Dec 2013 22:39:49 -0500 Received: by mail-qa0-f48.google.com with SMTP id w5so3890582qac.7 for ; Sun, 01 Dec 2013 19:39:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=ZdbpbJ+ANF3gzjAbBCbtZFUdn750Q/iNpb8bJ56mVpk=; b=Hzn2vh2g3l7N1OmdTF4d1WMK6y+QZXN+qoSTCbaWJ/oNXP9CnMDivcKCJs/3ypf0yB ItTI/p7Zn9bNeV676nKtXGpuAFHO9NBInGYVst+OsKwKE8Ezom8TZZpAhD3K/hURFZYv KMgjG/+TZl4529UQv6cOGduBUQPWGaeLfiuvWydiemNUMCmOHH2Hes6/CVxHp8/9LDtG h/N+peEOJflQSheQFgxGhViiVWEVCrV2nZ+hGL7Wgm5cKnQEV65ktEB0pqiNdu6jkR4F Vr8F8mU4wJLAxUz+JqZ19GdlofLA03xEoUVjmP67YqrA9EQW12IYGB7C38l57Shd8nGu /Ekw== X-Received: by 10.224.98.200 with SMTP id r8mr110839487qan.26.1385955587384; Sun, 01 Dec 2013 19:39:47 -0800 (PST) Received: from localhost.localdomain ([186.207.93.139]) by mx.google.com with ESMTPSA id n14sm40639950qav.8.2013.12.01.19.39.45 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 01 Dec 2013 19:39:46 -0800 (PST) From: Fabio Estevam To: bhelgaas@google.com Cc: marex@denx.de, linux-pci@vger.kernel.org, Fabio Estevam Subject: [PATCH 1/2] PCI: imx6: Remove unneeded check of platform_get_resource() Date: Mon, 2 Dec 2013 01:39:34 -0200 Message-Id: <1385955575-25270-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.8.1.2 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Fabio Estevam When using devm_ioremap_resource(), we do not need to check the return value of platform_get_resource(), so just remove it. Signed-off-by: Fabio Estevam Acked-by: Marek Vasut --- drivers/pci/host/pci-imx6.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/pci/host/pci-imx6.c b/drivers/pci/host/pci-imx6.c index bd70af8..5002e23 100644 --- a/drivers/pci/host/pci-imx6.c +++ b/drivers/pci/host/pci-imx6.c @@ -426,11 +426,6 @@ static int __init imx6_pcie_probe(struct platform_device *pdev) "imprecise external abort"); dbi_base = platform_get_resource(pdev, IORESOURCE_MEM, 0); - if (!dbi_base) { - dev_err(&pdev->dev, "dbi_base memory resource not found\n"); - return -ENODEV; - } - pp->dbi_base = devm_ioremap_resource(&pdev->dev, dbi_base); if (IS_ERR(pp->dbi_base)) { ret = PTR_ERR(pp->dbi_base);