From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id 3DFF9DE078 for ; Tue, 16 Oct 2007 07:01:22 +1000 (EST) Subject: Re: [PATCH] NEW EMAC Fix RGMII build error: use of_device_is_compatible From: Benjamin Herrenschmidt To: Valentine Barshak In-Reply-To: <20071012130445.GA14704@ru.mvista.com> References: <20071012130445.GA14704@ru.mvista.com> Content-Type: text/plain Date: Tue, 16 Oct 2007 07:01:13 +1000 Message-Id: <1192482073.11795.33.camel@pasglop> Mime-Version: 1.0 Cc: linuxppc-dev@ozlabs.org, netdev@vger.kernel.org Reply-To: benh@kernel.crashing.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, 2007-10-12 at 17:04 +0400, Valentine Barshak wrote: > Fix build RGMII error: use of_device_is_compatible() > insteadof now deprecated device_is_compatible() function. > > Signed-off-by: Valentine Barshak Acked-by: Benjamin Herrenschmidt > --- > drivers/net/ibm_newemac/rgmii.c | 2 +- > 1 files changed, 1 insertion(+), 1 deletion(-) > > diff -pruN linux-2.6.orig/drivers/net/ibm_newemac/rgmii.c linux-2.6/drivers/net/ibm_newemac/rgmii.c > --- linux-2.6.orig/drivers/net/ibm_newemac/rgmii.c 2007-10-12 16:02:41.000000000 +0400 > +++ linux-2.6/drivers/net/ibm_newemac/rgmii.c 2007-10-12 16:49:07.000000000 +0400 > @@ -251,7 +251,7 @@ static int __devinit rgmii_probe(struct > } > > /* Check for RGMII type */ > - if (device_is_compatible(ofdev->node, "ibm,rgmii-axon")) > + if (of_device_is_compatible(ofdev->node, "ibm,rgmii-axon")) > dev->type = RGMII_AXON; > else > dev->type = RGMII_STANDARD; > _______________________________________________ > Linuxppc-dev mailing list > Linuxppc-dev@ozlabs.org > https://ozlabs.org/mailman/listinfo/linuxppc-dev