Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755375Ab2FTIEm (ORCPT ); Wed, 20 Jun 2012 04:04:42 -0400 Received: from mail-qa0-f50.google.com ([209.85.216.50]:57130 "EHLO mail-qa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753365Ab2FTIEh (ORCPT ); Wed, 20 Jun 2012 04:04:37 -0400 MIME-Version: 1.0 In-Reply-To: <1340041471-30122-1-git-send-email-devendra.aaru@gmail.com> References: <1340041471-30122-1-git-send-email-devendra.aaru@gmail.com> Date: Wed, 20 Jun 2012 10:04:36 +0200 Message-ID: Subject: Re: [PATCH 1/2] pinctrl/pinctrl-tegra: remove IS_ERR checking of pmx->pctl From: Linus Walleij To: Devendra Naga Cc: Stephen Warren , linux-kernel@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 865 Lines: 21 On Mon, Jun 18, 2012 at 7:44 PM, Devendra Naga wrote: > pinctrl_register returns a pointer of struct type struct pinctrl_dev, > if successfully registered to pinctrl subsystem, otherwise returns > NULL, and there wont' be any pointers which are not dereferencible. > > They are not type of pointer addresses but are kind of error > codes rather actual addresses, but are a kind of return > codes of functions returning integer types. > > return -ENODEV if device registration fails. > > Signed-off-by: Devendra Naga Applied with Stephen's ACK, thanks! Linus Walleij -- 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/