summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJin Park <jinyoungp@nvidia.com>2011-09-27 20:04:18 +0900
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:49:03 -0800
commitb75c817579caad60485db76547182b6fd336c58c (patch)
tree18915d9dfa75e241b21a446c2d6b52e12d3b2c43 /drivers
parentc6b3eddba4aa0685a0a0576219622b9a2c0c4d74 (diff)
rtc: max77663: Cleanup update_irq_enable operation
After update rtc core, the update_irq_enable operation was removed and no one calls rtc_class_ops->update_irq_enable() anymore. Cleanup update_irq_enable operation in rtc-max77663 driver. Change-Id: I0a9c6d6e348246f62109d03e92fb72ef2fe45157 Signed-off-by: Jin Park <jinyoungp@nvidia.com> Reviewed-on: http://git-master/r/54685 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Rebase-Id: Rf73a6a28d6a39f8e2cf10a173a8506648ba60af2
Diffstat (limited to 'drivers')
-rw-r--r--drivers/rtc/rtc-max77663.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/drivers/rtc/rtc-max77663.c b/drivers/rtc/rtc-max77663.c
index 9f0981f91e46..617659a3651f 100644
--- a/drivers/rtc/rtc-max77663.c
+++ b/drivers/rtc/rtc-max77663.c
@@ -294,39 +294,6 @@ static int max77663_rtc_alarm_irq_enable(struct device *dev,
return 0;
}
-static int max77663_rtc_update_irq_enable(struct device *dev,
- unsigned int enabled)
-{
- struct max77663_rtc *rtc = dev_get_drvdata(dev);
- struct device *parent = _to_parent(rtc);
- u8 val = 0;
- int ret = 0;
-
- if (rtc->irq < 0)
- return -ENXIO;
-
- mutex_lock(&rtc->io_lock);
- if (enabled)
- val = rtc->irq_mask & ~RTC_IRQ_1SEC_MASK;
- else
- val = rtc->irq_mask | RTC_IRQ_1SEC_MASK;
-
- if (val != rtc->irq_mask) {
- ret = max77663_write(parent, MAX77663_RTC_IRQ_MASK, &val, 1, 1);
- if (ret < 0) {
- dev_err(rtc->dev, "rtc_update_irq_enable: "
- "Failed to set rtc irq mask\n");
- mutex_unlock(&rtc->io_lock);
- return ret;
- }
-
- rtc->irq_mask = val;
- }
- mutex_unlock(&rtc->io_lock);
-
- return 0;
-}
-
static int max77663_rtc_read_time(struct device *dev, struct rtc_time *tm)
{
struct max77663_rtc *rtc = dev_get_drvdata(dev);
@@ -424,7 +391,6 @@ static const struct rtc_class_ops max77663_rtc_ops = {
.read_alarm = max77663_rtc_read_alarm,
.set_alarm = max77663_rtc_set_alarm,
.alarm_irq_enable = max77663_rtc_alarm_irq_enable,
- .update_irq_enable = max77663_rtc_update_irq_enable,
};
static int max77663_rtc_preinit(struct max77663_rtc *rtc)