From patchwork Tue Oct 21 10:33:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Varka Bhadram X-Patchwork-Id: 5112541 Return-Path: X-Original-To: patchwork-linux-arm@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 9EA899F374 for ; Tue, 21 Oct 2014 10:40:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C1E9120158 for ; Tue, 21 Oct 2014 10:40:05 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A615220148 for ; Tue, 21 Oct 2014 10:40:04 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XgWoQ-0006xJ-F2; Tue, 21 Oct 2014 10:37:10 +0000 Received: from mail-pd0-x22f.google.com ([2607:f8b0:400e:c02::22f]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XgWoG-0006tr-I3 for linux-arm-kernel@lists.infradead.org; Tue, 21 Oct 2014 10:37:01 +0000 Received: by mail-pd0-f175.google.com with SMTP id v10so1084361pde.34 for ; Tue, 21 Oct 2014 03:36:39 -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=q5LwqN2DPbwLjmDDxumGCdw5BAKdbe68pzAx/d6fOQM=; b=02ncJmf7ULEz0MUy25aCrbTbK4JobeEjVTMJRz3tUL/nesnk+838DL8mxSCJVfS98m Q5mM0W/L4xdVbv7zknlhxz2qbM1pLmZRNXDS0zKG77Ht5OU+5deWGLKkFMG5AEwccgMn xe4j82iTbLR16hebCJt5F+ymx+Zox6q9FFdG4V6LYLCMer3F1SpHTWWqqt6TuyZYHWyC tQ3msNwU6psC12lKpX5lgQ543jqJ87Br40D3HHWgqIvZXNjpdAVSWziv/yiWaL2r5ivT TQJCTQZAtrdXbZMZmFW+pQprSnfuXbna8uiHo4IGBd5NgnUPSABDNM+174x2JwNLCvOL PwGg== X-Received: by 10.66.220.34 with SMTP id pt2mr1910756pac.142.1413887799685; Tue, 21 Oct 2014 03:36:39 -0700 (PDT) Received: from cdac.hyderabad.cdac.in ([196.12.45.164]) by mx.google.com with ESMTPSA id va2sm11681985pac.15.2014.10.21.03.36.36 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 21 Oct 2014 03:36:38 -0700 (PDT) From: Varka Bhadram X-Google-Original-From: Varka Bhadram To: linux-arm-kernel@lists.infradead.org Subject: [PATCH arm-soc 2/2] plat-omap: dmtimer: remove duplicate check on resource Date: Tue, 21 Oct 2014 16:03:32 +0530 Message-Id: <1413887612-25012-3-git-send-email-varkab@cdac.in> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1413887612-25012-1-git-send-email-varkab@cdac.in> References: <1413887612-25012-1-git-send-email-varkab@cdac.in> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141021_033700_781103_092DD648 X-CRM114-Status: UNSURE ( 9.44 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.8 (/) Cc: Varka Bhadram , linux@arm.linux.org.uk X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham 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 Sanity check on resource happening with devm_ioremap_resource(). Signed-off-by: Varka Bhadram --- arch/arm/plat-omap/dmtimer.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch/arm/plat-omap/dmtimer.c b/arch/arm/plat-omap/dmtimer.c index db10169..bed495a 100644 --- a/arch/arm/plat-omap/dmtimer.c +++ b/arch/arm/plat-omap/dmtimer.c @@ -815,10 +815,6 @@ static int omap_dm_timer_probe(struct platform_device *pdev) } mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); - if (unlikely(!mem)) { - dev_err(dev, "%s: no memory resource.\n", __func__); - return -ENODEV; - } timer = devm_kzalloc(dev, sizeof(struct omap_dm_timer), GFP_KERNEL); if (!timer) {