From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756704AbaIWPCk (ORCPT ); Tue, 23 Sep 2014 11:02:40 -0400 Received: from mail-ie0-f172.google.com ([209.85.223.172]:36477 "EHLO mail-ie0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756669AbaIWPCg (ORCPT ); Tue, 23 Sep 2014 11:02:36 -0400 MIME-Version: 1.0 In-Reply-To: <1410340551-24023-1-git-send-email-antoine.tenart@free-electrons.com> References: <1410340551-24023-1-git-send-email-antoine.tenart@free-electrons.com> Date: Tue, 23 Sep 2014 17:02:35 +0200 Message-ID: Subject: Re: [PATCH] pinctrl: berlin: fix the dt_free_map function From: Linus Walleij To: Antoine Tenart Cc: Sebastian Hesselbarth , Alexandre Belloni , Thomas Petazzoni , zhiming Xu , Jisheng Zhang , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 10, 2014 at 11:15 AM, Antoine Tenart wrote: > The berlin_pinctrl_dt_free_map function tries to free memory > allocated and handled by the of subsystem. This is wrong and > already handled by pinctrl_dt_free_maps() which calls > of_node_put(). > > This patch fixes the Berlin pinctrl way of freeing its maps, > avoiding a kernel BUG(), by using the common > pinctrl_utils_dt_free_map function instead. > > Signed-off-by: Antoine Tenart Patch applied with Sebastian's ACK. Yours, Linus Walleij