Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760972Ab2FVB5P (ORCPT ); Thu, 21 Jun 2012 21:57:15 -0400 Received: from mtaext1.cujae.edu.cu ([200.55.139.24]:57274 "EHLO mtaext1.cujae.edu.cu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760953Ab2FVB5O (ORCPT ); Thu, 21 Jun 2012 21:57:14 -0400 X-Greylist: delayed 506 seconds by postgrey-1.27 at vger.kernel.org; Thu, 21 Jun 2012 21:57:13 EDT X-Spam-Flag: NO X-Spam-Score: -2.9 X-Spam-Processed: udio.cujae.edu.cu, Thu, 21 Jun 2012 13:59:41 -0400 (not processed: message from trusted or authenticated source) X-Authenticated-Sender: acabrera@udio.cujae.edu.cu X-MDRemoteIP: 10.9.3.110 X-Return-Path: acabrera@udio.cujae.edu.cu X-Envelope-From: acabrera@udio.cujae.edu.cu Message-ID: <4FE37029.50007@udio.cujae.edu.cu> Date: Thu, 21 Jun 2012 14:04:09 -0500 From: Alejandro Cabrera User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Michal Simek CC: linux-watchdog@vger.kernel.org, devicetree-discuss@lists.ozlabs.org, Wim Van Sebroeck , Grant Likely , Rob Herring , linux-kernel@vger.kernel.org Subject: Re: [PATCH] watchdog: xilinx: Read clock frequency directly from DT node References: <1340261140-10166-1-git-send-email-monstr@monstr.eu> In-Reply-To: <1340261140-10166-1-git-send-email-monstr@monstr.eu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1250 Lines: 34 > Do not use clock-frequency property from parent node. > Use it from watchdog node. > > Signed-off-by: Michal Simek Acked-By: Alejandro Cabrera > --- > drivers/watchdog/of_xilinx_wdt.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/drivers/watchdog/of_xilinx_wdt.c b/drivers/watchdog/of_xilinx_wdt.c > index 55d2f66..294fb4e 100644 > --- a/drivers/watchdog/of_xilinx_wdt.c > +++ b/drivers/watchdog/of_xilinx_wdt.c > @@ -297,7 +297,7 @@ static int __devinit xwdt_probe(struct platform_device *pdev) > > no_timeout = 0; > > - pfreq = (u32 *)of_get_property(pdev->dev.of_node->parent, > + pfreq = (u32 *)of_get_property(pdev->dev.of_node, > "clock-frequency", NULL); > > if (pfreq == NULL) { Participe en la XVI Convencion Cientifica de Ingenieria y Arquitectura del 26 al 30 de noviembre de 2012. La Habana, Cuba: http://ccia.cujae.edu.cu Consulte la enciclopedia colaborativa cubana. http://www.ecured.cu -- 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/