From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail0.scram.de (mail0.scram.de [78.47.204.202]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mail0.scram.de", Issuer "scram e.V. CA" (not verified)) by ozlabs.org (Postfix) with ESMTP id AF0CCDDE26 for ; Sun, 23 Dec 2007 03:07:44 +1100 (EST) Message-ID: <476D366E.1030104@scram.de> Date: Sat, 22 Dec 2007 17:08:14 +0100 From: Jochen Friedrich MIME-Version: 1.0 To: Anton Vorontsov Subject: Re: [PATCH 4/4] [POWERPC] CPM1: implement GPIO API References: <20071221202824.GA4607@localhost.localdomain> <20071221203431.GD4633@localhost.localdomain> <476CDECB.3010409@scram.de> In-Reply-To: <476CDECB.3010409@scram.de> Content-Type: text/plain; charset=UTF-8; format=flowed Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi Anton, > I also hope you'll test it. ;-) yes. > +int cpm_init_par_io(void) > +{ > + struct device_node *np; > + const u32 *num_ports; > + > + np = of_find_node_by_name(NULL, "fsl,cpm1-pario"); > + if (!np) > + return -ENOENT; > + I guess this should be: np = of_find_compatible_node(NULL, NULL, "fsl,cpm1-pario"); With this modification it works OK for me :) Thanks, Jochen