Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752245Ab2FRLrX (ORCPT ); Mon, 18 Jun 2012 07:47:23 -0400 Received: from mail-pz0-f46.google.com ([209.85.210.46]:48664 "EHLO mail-pz0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751439Ab2FRLrW (ORCPT ); Mon, 18 Jun 2012 07:47:22 -0400 MIME-Version: 1.0 Date: Mon, 18 Jun 2012 17:17:22 +0530 Message-ID: Subject: Q: return of pinctrl_register and handing at drivers that use this function From: "devendra.aaru" To: Linus Walleij , 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: 694 Lines: 19 Hi, since the pinctrl_register returns a pointer of structure type "struct pinctrl_dev" or NULL if it was failed to register the pinctrl driver, so IS_ERR checking is not required? My understanding about IS_ERR is that its used when the pointer addresses are kind of error codes rather actual addresses, but are a kind of return codes of functions returning integer types. Please correct me if my understanding is not correct. Thanks, Devendra. -- 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/