diff options
author | Bjorn Helgaas <bjorn.helgaas@hp.com> | 2008-04-28 18:34:27 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-04-29 03:22:27 -0400 |
commit | 8766ad0ce8621aa6f0e4a91ef355509cc3364d5b (patch) | |
tree | 8adb0b418fcf129c99294acc7e93885412abf699 /drivers | |
parent | 95ab3669f7830682c7762e9c305a0c1dd44454cc (diff) |
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>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/rtc/rtc-cmos.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/rtc/rtc-cmos.c b/drivers/rtc/rtc-cmos.c index dcdc142a3441..d060a06ce05b 100644 --- a/drivers/rtc/rtc-cmos.c +++ b/drivers/rtc/rtc-cmos.c | |||
@@ -854,11 +854,12 @@ cmos_pnp_probe(struct pnp_dev *pnp, const struct pnp_device_id *id) | |||
854 | * don't define the IRQ. It should always be safe to | 854 | * don't define the IRQ. It should always be safe to |
855 | * hardcode it in these cases | 855 | * hardcode it in these cases |
856 | */ | 856 | */ |
857 | return cmos_do_probe(&pnp->dev, &pnp->res.port_resource[0], 8); | 857 | return cmos_do_probe(&pnp->dev, |
858 | pnp_get_resource(pnp, IORESOURCE_IO, 0), 8); | ||
858 | else | 859 | else |
859 | return cmos_do_probe(&pnp->dev, | 860 | return cmos_do_probe(&pnp->dev, |
860 | &pnp->res.port_resource[0], | 861 | pnp_get_resource(pnp, IORESOURCE_IO, 0), |
861 | pnp->res.irq_resource[0].start); | 862 | pnp_irq(pnp, 0)); |
862 | } | 863 | } |
863 | 864 | ||
864 | static void __exit cmos_pnp_remove(struct pnp_dev *pnp) | 865 | static void __exit cmos_pnp_remove(struct pnp_dev *pnp) |