Re: [RFC] disabling RTC irq during release

2007-07-10 Thread David Brownell
On Wednesday 04 July 2007, Rodolfo Giometti wrote: > Hello, > > Looking at other rtc drivers I noticed that during the release() > method we should disable IRQs as follow: > > static void ds1307_release(struct device *dev) > { > struct ds1307 *ds1307 = dev_get_drvdata(dev); > >

[RFC] disabling RTC irq during release

2007-07-04 Thread Rodolfo Giometti
Hello, Looking at other rtc drivers I noticed that during the release() method we should disable IRQs as follow: static void ds1307_release(struct device *dev) { struct ds1307 *ds1307 = dev_get_drvdata(dev); if (ds1307->irq >= 0) { ds1307->irqen = 0;