Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8834716imu; Sat, 29 Dec 2018 04:53:34 -0800 (PST) X-Google-Smtp-Source: ALg8bN5sYs5qndw2A8pUUW046cYFBaCC6t46Y2H8N3P/3G1LrqTlb2ruANKtuTccLwxvVs0+5bIt X-Received: by 2002:a63:4611:: with SMTP id t17mr1507575pga.119.1546088014158; Sat, 29 Dec 2018 04:53:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546088014; cv=none; d=google.com; s=arc-20160816; b=WSMJ3r8Cg/rcnM8kx+0qbTMZLtE7R2L11vGyrQpkpqNQkBnRAtwubXgWqTYpNAaouh GZ0UR/6HYPlhT+U4/UOmihvPpxne48t8YYGTS4zqin0rJ9OjygvNZKWwEracwVa3bFpw YAoeUK6BbRucUDJap6DwMoTN6GiS0CbRJ1/e9CIFao1O4Vn6OGjQL8jZjZ9HBnIqkzDa tuiw3z/iEp2yYXwtHKhi9gL0Te3aiw8ZzooFRzD4HZHgZZV4i/xIQ301APzTr3rayWDD xDJXhGrmGqmtBcg+mzr4EbLL+7+apUub5aJpYVOkozvKvD9RydktZlRXCDqrqrVI84YK KdHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=MJq8tNe6UWPOIA1OHFCYM8TSmN6w5RrGw9pBqLv8cLI=; b=vhVof7GIWn/jiZrCnwy4ocSuFk9ilZp3aOe++dohcxOqTNlJNKcimbLy53W2EUBXcP 5MlVPD38D1/VstsrEg3gY5Vn/NkI1vN6ctmT/0g2lT83jmrIp3oxDlRM8l1huaZu5OQX gN+UPMDCXZk4BXZoYTx5JD946UNMr0oQxWCxgEeARxFbJDWQzpB4CjPHykFAFgofWHuf 47EDF/0rmFkpudL8unOOncLjh/cs53GF0+iL8d9vXU1Iazh3Fa0WctZvsPm+EJCiZ4L1 93dLTBRbBk6mYcprcRHyz+F39aVxmeZaAqVTby9JDK2A12BWc96vQBQZbxWDdQ5Vk8Fd B0OA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r196si40587840pgr.311.2018.12.29.04.53.18; Sat, 29 Dec 2018 04:53:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728054AbeL2Etf (ORCPT + 99 others); Fri, 28 Dec 2018 23:49:35 -0500 Received: from out1.zte.com.cn ([202.103.147.172]:38420 "EHLO mxct.zte.com.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726978AbeL2Etf (ORCPT ); Fri, 28 Dec 2018 23:49:35 -0500 Received: from mse01.zte.com.cn (unknown [10.30.3.20]) by Forcepoint Email with ESMTPS id 48F89428036E7A616BD1; Sat, 29 Dec 2018 12:49:30 +0800 (CST) Received: from notes_smtp.zte.com.cn ([10.30.1.239]) by mse01.zte.com.cn with ESMTP id wBT4nNa7078110; Sat, 29 Dec 2018 12:49:23 +0800 (GMT-8) (envelope-from peng.hao2@zte.com.cn) Received: from localhost.localdomain.localdomain ([10.74.120.59]) by szsmtp06.zte.com.cn (Lotus Domino Release 8.5.3FP6) with ESMTP id 2018122912500712-19455304 ; Sat, 29 Dec 2018 12:50:07 +0800 From: Peng Hao To: linux@armlinux.org.uk, robert.jarzmik@free.fr Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Hao Subject: [PATCH 2/2] arm/plat-pxa/ssp : unneeded to free devm_ allocated data Date: Sat, 29 Dec 2018 13:10:06 +0800 Message-Id: <1546060206-97556-1-git-send-email-peng.hao2@zte.com.cn> X-Mailer: git-send-email 1.8.3.1 X-MIMETrack: Itemize by SMTP Server on SZSMTP06/server/zte_ltd(Release 8.5.3FP6|November 21, 2013) at 2018-12-29 12:50:07, Serialize by Router on notes_smtp/zte_ltd(Release 9.0.1FP7|August 17, 2016) at 2018-12-29 12:49:03, Serialize complete at 2018-12-29 12:49:03 X-MAIL: mse01.zte.com.cn wBT4nNa7078110 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org devm_ allocated data will be automatically freed. The free of devm_ allocated data is invalid. Signed-off-by: Peng Hao --- arch/arm/plat-pxa/ssp.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm/plat-pxa/ssp.c b/arch/arm/plat-pxa/ssp.c index ed36dca..f519199 100644 --- a/arch/arm/plat-pxa/ssp.c +++ b/arch/arm/plat-pxa/ssp.c @@ -190,8 +190,6 @@ static int pxa_ssp_remove(struct platform_device *pdev) if (ssp == NULL) return -ENODEV; - iounmap(ssp->mmio_base); - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); release_mem_region(res->start, resource_size(res)); @@ -201,7 +199,6 @@ static int pxa_ssp_remove(struct platform_device *pdev) list_del(&ssp->node); mutex_unlock(&ssp_lock); - kfree(ssp); return 0; } -- 1.8.3.1