From patchwork Mon Feb 11 13:02:42 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastien Guiriec X-Patchwork-Id: 2124421 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 0D8DFDF2A1 for ; Mon, 11 Feb 2013 13:03:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757155Ab3BKNDI (ORCPT ); Mon, 11 Feb 2013 08:03:08 -0500 Received: from devils.ext.ti.com ([198.47.26.153]:49130 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757104Ab3BKNDH (ORCPT ); Mon, 11 Feb 2013 08:03:07 -0500 Received: from dlelxv30.itg.ti.com ([172.17.2.17]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id r1BD2n4n008259; Mon, 11 Feb 2013 07:02:49 -0600 Received: from DLEE74.ent.ti.com (dlee74.ent.ti.com [157.170.170.8]) by dlelxv30.itg.ti.com (8.13.8/8.13.8) with ESMTP id r1BD2nAQ020578; Mon, 11 Feb 2013 07:02:49 -0600 Received: from dlelxv22.itg.ti.com (172.17.1.197) by DLEE74.ent.ti.com (157.170.170.8) with Microsoft SMTP Server id 14.1.323.3; Mon, 11 Feb 2013 07:02:49 -0600 Received: from unb0919150.emea.dhcp.ti.com (unb0919150.emea.dhcp.ti.com [137.167.110.144]) by dlelxv22.itg.ti.com (8.13.8/8.13.8) with ESMTP id r1BD2lwe014495; Mon, 11 Feb 2013 07:02:48 -0600 From: Sebastien Guiriec To: Sebastien Guiriec , Peter Ujfalusi , Jarkko Nikula , Liam Girdwood , Mark Brown , , Subject: [PATCH] ASoC: omap-mcpdm: Remove useless ressource get. Date: Mon, 11 Feb 2013 14:02:42 +0100 Message-ID: <1360587762-29072-1-git-send-email-s-guiriec@ti.com> X-Mailer: git-send-email 1.7.10.4 MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Remove unused memory ressource get from McPDM driver. Signed-off-by: Sebastien Guiriec Acked-by: Peter Ujfalusi --- sound/soc/omap/omap-mcpdm.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sound/soc/omap/omap-mcpdm.c b/sound/soc/omap/omap-mcpdm.c index 2fe8be2..5ca11bd 100644 --- a/sound/soc/omap/omap-mcpdm.c +++ b/sound/soc/omap/omap-mcpdm.c @@ -449,10 +449,6 @@ static int asoc_mcpdm_probe(struct platform_device *pdev) omap_mcpdm_dai_dma_params[0].port_addr = res->start + MCPDM_REG_DN_DATA; omap_mcpdm_dai_dma_params[1].port_addr = res->start + MCPDM_REG_UP_DATA; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - if (res == NULL) - return -ENOMEM; - res = platform_get_resource_byname(pdev, IORESOURCE_DMA, "dn_link"); if (!res) return -ENODEV;