From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754899AbaIDRdM (ORCPT ); Thu, 4 Sep 2014 13:33:12 -0400 Received: from mail-pa0-f49.google.com ([209.85.220.49]:40328 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753991AbaIDRdL (ORCPT ); Thu, 4 Sep 2014 13:33:11 -0400 Date: Thu, 4 Sep 2014 10:33:01 -0700 From: Dmitry Torokhov To: Doug Anderson Cc: Chris Zhong , Heiko =?iso-8859-1?Q?St=FCbner?= , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Samuel Ortiz , Lee Jones , Liam Girdwood , Alessandro Zummo , Mike Turquette , Andrew Morton , "broonie@kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , rtc-linux@googlegroups.com, Grant Likely , Lin Huang , Tao Huang , Eddie Cai , zhangqing , xxx , Olof Johansson , Sonny Rao , Javier Martinez Canillas , Kever Yang Subject: Re: [PATCH v9 1/3] RTC: RK808: add RTC driver for RK808 Message-ID: <20140904173300.GC10224@core.coreip.homeip.net> References: <1409793159-2573-1-git-send-email-zyw@rock-chips.com> <1409793159-2573-2-git-send-email-zyw@rock-chips.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 03, 2014 at 09:18:42PM -0700, Doug Anderson wrote: > Chris, > > On Wed, Sep 3, 2014 at 6:12 PM, Chris Zhong wrote: > > Adding RTC driver for supporting RTC device present inside RK808 PMIC. > > > > Signed-off-by: Chris Zhong > > Signed-off-by: Zhang Qing > > > > Tested-by: Heiko Stuebner > > Reviewed-by: Doug Anderson > Tested-by: Doug Anderson > > > > + rk808_rtc->irq = platform_get_irq(pdev, 0); > > + if (rk808_rtc->irq < 0) { > > + dev_err(&pdev->dev, "Wake up is not possible as irq = %d\n", > > + rk808_rtc->irq); > > Technically you shouldn't print the error if it's -EPROBE_DEFER. > ...but I think that's really unlikely here (I can't imagine any real > cases where the interrupt parent for RK808 would actually be deferred) > so I won't push it. Doug, platform_get_irq() simply iterates through IRQ resources assigned to the device, which are populated at platform device creation time. The only error it returns ever is -ENXIO, so we are fine here. Thanks. -- Dmitry