lkml.org 
[lkml]   [2008]   [Apr]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 33/53] rtc: dont reference pnp_resource_table directly
    pnp_resource_table is going away soon, so use the more
    generic public interfaces instead.

    Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
    Acked-By: Rene Herman <rene.herman@gmail.com>

    Index: work9/drivers/rtc/rtc-cmos.c
    ===================================================================
    --- work9.orig/drivers/rtc/rtc-cmos.c 2008-04-18 12:47:21.000000000 -0600
    +++ work9/drivers/rtc/rtc-cmos.c 2008-04-18 12:52:19.000000000 -0600
    @@ -854,11 +854,12 @@
    * don't define the IRQ. It should always be safe to
    * hardcode it in these cases
    */
    - return cmos_do_probe(&pnp->dev, &pnp->res.port_resource[0], 8);
    + return cmos_do_probe(&pnp->dev,
    + pnp_get_resource(pnp, IORESOURCE_IO, 0), 8);
    else
    return cmos_do_probe(&pnp->dev,
    - &pnp->res.port_resource[0],
    - pnp->res.irq_resource[0].start);
    + pnp_get_resource(pnp, IORESOURCE_IO, 0),
    + pnp_irq(pnp, 0));
    }

    static void __exit cmos_pnp_remove(struct pnp_dev *pnp)
    --


    \
     
     \ /
      Last update: 2008-04-18 23:07    [W:0.022 / U:59.932 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site