Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757461Ab2FQDEi (ORCPT ); Sat, 16 Jun 2012 23:04:38 -0400 Received: from mail-yx0-f174.google.com ([209.85.213.174]:42974 "EHLO mail-yx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756269Ab2FQDES (ORCPT ); Sat, 16 Jun 2012 23:04:18 -0400 From: Otavio Salvador To: linux-kernel@vger.kernel.org Cc: Otavio Salvador , Linus Walleij Subject: [PATCH 2/2] pinctrl: pinctrl-mxs: fix implicit declaration of free() Date: Sun, 17 Jun 2012 00:06:55 -0300 Message-Id: <1339902416-19299-2-git-send-email-otavio@ossystems.com.br> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1339902416-19299-1-git-send-email-otavio@ossystems.com.br> References: <1339902416-19299-1-git-send-email-otavio@ossystems.com.br> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1190 Lines: 38 ,--[ build failure ] | ... | .../pinctrl-mxs.c: In function 'mxs_dt_node_to_map': | .../pinctrl-mxs.c:140:3: error: implicit declaration of function 'free' | [-Werror=implicit-function-declaration] | .../pinctrl-mxs.c:140:3: warning: incompatible implicit declaration of | built-in function 'free' [enabled by default] | ... `-- Signed-off-by: Otavio Salvador Cc: Linus Walleij --- drivers/pinctrl/pinctrl-mxs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/pinctrl/pinctrl-mxs.c b/drivers/pinctrl/pinctrl-mxs.c index afb50ee..85f8dda 100644 --- a/drivers/pinctrl/pinctrl-mxs.c +++ b/drivers/pinctrl/pinctrl-mxs.c @@ -136,8 +136,7 @@ static int mxs_dt_node_to_map(struct pinctrl_dev *pctldev, return 0; free_group: - if (!purecfg) - free(group); + kfree(group); free: kfree(new_map); return ret; -- 1.7.10 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/