public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Alessandro Zummo <a.zummo@towertech.it>
To: RAGHAVENDRA GANIGA <ravi23ganiga@gmail.com>
Cc: linux-kernel@vger.kernel.org, rtc-linux@googlegroups.com
Subject: Re: query regarding not returning error if request_irq fails after rtc registration
Date: Thu, 15 May 2014 18:56:35 +0200	[thread overview]
Message-ID: <20140515185635.617d372b@linux.lan.towertech.it> (raw)
In-Reply-To: <5374EF1A.2000609@gmail.com>

On Thu, 15 May 2014 22:15:14 +0530
RAGHAVENDRA GANIGA <ravi23ganiga@gmail.com> wrote:

> my question is that the set_alarm and alarm_irq_enable is still active,
> so should i use some flag in the global private variable of the driver
> so that if the request irq fails, then using this flag the set_alarm
> and alarm_irq_enable can return error since there is no irq handler
> for the rtc interrupt 
> or is there any other solution 
> or let the set_alarm and alarm_irq_enable routine be as it is and will

 you can use a flag (or set the irq to -1)

-- 

 Best regards,

 Alessandro Zummo,
  Tower Technologies - Torino, Italy

  http://www.towertech.it


      reply	other threads:[~2014-05-15 16:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-15 16:45 query regarding not returning error if request_irq fails after rtc registration RAGHAVENDRA GANIGA
2014-05-15 16:56 ` Alessandro Zummo [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140515185635.617d372b@linux.lan.towertech.it \
    --to=a.zummo@towertech.it \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ravi23ganiga@gmail.com \
    --cc=rtc-linux@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox