Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755538Ab2FTH7U (ORCPT ); Wed, 20 Jun 2012 03:59:20 -0400 Received: from mail-qa0-f42.google.com ([209.85.216.42]:45523 "EHLO mail-qa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755507Ab2FTH7K (ORCPT ); Wed, 20 Jun 2012 03:59:10 -0400 MIME-Version: 1.0 In-Reply-To: <1340041564-30168-1-git-send-email-devendra.aaru@gmail.com> References: <1340041564-30168-1-git-send-email-devendra.aaru@gmail.com> Date: Wed, 20 Jun 2012 09:59:09 +0200 Message-ID: Subject: Re: [PATCH 2/2] pinctrl/pinctrl-spear: remove IS_ERR checking of pmx->pctl From: Linus Walleij To: Devendra Naga Cc: Viresh Kumar , 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: 846 Lines: 21 On Mon, Jun 18, 2012 at 7:46 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, 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/