lkml.org 
[lkml]   [2008]   [Jul]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 1/8] [Blackfin] RTC driver: if we dont define irq_set_freq, the common rtc-dev layer will give us the same behavior of returning ENOTTY
    Date
    From: Mike Frysinger <michael.frysinger@analog.com>

    Signed-off-by: Mike Frysinger <michael.frysinger@analog.com>
    Signed-off-by: Bryan Wu <bryan.wu@analog.com>
    Signed-off-by: Bryan Wu <cooloney@kernel.org>
    ---
    drivers/rtc/rtc-bfin.c | 15 ---------------
    1 files changed, 0 insertions(+), 15 deletions(-)

    diff --git a/drivers/rtc/rtc-bfin.c b/drivers/rtc/rtc-bfin.c
    index 8624f55..48ada59 100644
    --- a/drivers/rtc/rtc-bfin.c
    +++ b/drivers/rtc/rtc-bfin.c
    @@ -381,20 +381,6 @@ static int bfin_rtc_proc(struct device *dev, struct seq_file *seq)
    #undef yesno
    }

    -/**
    - * bfin_irq_set_freq - make sure hardware supports requested freq
    - * @dev: pointer to RTC device structure
    - * @freq: requested frequency rate
    - *
    - * The Blackfin RTC can only generate periodic events at 1 per
    - * second (1 Hz), so reject any attempt at changing it.
    - */
    -static int bfin_irq_set_freq(struct device *dev, int freq)
    -{
    - dev_dbg_stamp(dev);
    - return -ENOTTY;
    -}
    -
    static struct rtc_class_ops bfin_rtc_ops = {
    .open = bfin_rtc_open,
    .release = bfin_rtc_release,
    @@ -404,7 +390,6 @@ static struct rtc_class_ops bfin_rtc_ops = {
    .read_alarm = bfin_rtc_read_alarm,
    .set_alarm = bfin_rtc_set_alarm,
    .proc = bfin_rtc_proc,
    - .irq_set_freq = bfin_irq_set_freq,
    };

    static int __devinit bfin_rtc_probe(struct platform_device *pdev)
    --
    1.5.6


    \
     
     \ /
      Last update: 2008-07-27 08:41    [W:0.025 / U:0.664 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site