~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/rtc/rtc-jz4740.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
168
168
        return ret;
169
169
}
170
170
 
171
 
static int jz4740_rtc_update_irq_enable(struct device *dev, unsigned int enable)
172
 
{
173
 
        struct jz4740_rtc *rtc = dev_get_drvdata(dev);
174
 
        return jz4740_rtc_ctrl_set_bits(rtc, JZ_RTC_CTRL_1HZ_IRQ, enable);
175
 
}
176
 
 
177
171
static int jz4740_rtc_alarm_irq_enable(struct device *dev, unsigned int enable)
178
172
{
179
173
        struct jz4740_rtc *rtc = dev_get_drvdata(dev);
185
179
        .set_mmss       = jz4740_rtc_set_mmss,
186
180
        .read_alarm     = jz4740_rtc_read_alarm,
187
181
        .set_alarm      = jz4740_rtc_set_alarm,
188
 
        .update_irq_enable = jz4740_rtc_update_irq_enable,
189
182
        .alarm_irq_enable = jz4740_rtc_alarm_irq_enable,
190
183
};
191
184