Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756390Ab2FTRIx (ORCPT ); Wed, 20 Jun 2012 13:08:53 -0400 Received: from mail-pz0-f46.google.com ([209.85.210.46]:49772 "EHLO mail-pz0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753751Ab2FTRIw convert rfc822-to-8bit (ORCPT ); Wed, 20 Jun 2012 13:08:52 -0400 MIME-Version: 1.0 In-Reply-To: References: Date: Wed, 20 Jun 2012 22:38:51 +0530 Message-ID: Subject: Re: Q: return of pinctrl_register and handing at drivers that use this function From: "devendra.aaru" To: Linus Walleij Cc: Stephen Warren , linux-kernel@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 552 Lines: 20 Hi Linus, On Wed, Jun 20, 2012 at 1:22 PM, Linus Walleij wrote: > I mean it shall be tested like this: > > if (!pinmctrl_register(&foo)) { > ? ?/* error case */ > } > > No IS_ERR() business. > Yeah, and you already took the changes into your brach :-). Thanks! > Linus 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/