Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1764211AbYCZRVi (ORCPT ); Wed, 26 Mar 2008 13:21:38 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759809AbYCZRJu (ORCPT ); Wed, 26 Mar 2008 13:09:50 -0400 Received: from g4t0017.houston.hp.com ([15.201.24.20]:32725 "EHLO g4t0017.houston.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758380AbYCZRJV (ORCPT ); Wed, 26 Mar 2008 13:09:21 -0400 Message-Id: <20080326171230.371823262@ldl.fc.hp.com> References: <20080326171058.099442579@ldl.fc.hp.com> User-Agent: quilt/0.46-1 Date: Wed, 26 Mar 2008 11:11:33 -0600 From: Bjorn Helgaas To: Len Brown Cc: linux-acpi@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: Adam Belay Cc: Li Shaohua Cc: Matthieu Castet Cc: Thomas Renninger Cc: Rene Herman Cc: Jaroslav Kysela Cc: Andrew Morton Subject: [patch 35/37] rtc: dont reference pnp_resource_table directly Content-Disposition: inline; filename=rtc-remove-pnp_resource_table-use Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1165 Lines: 32 pnp_resource_table is going away soon, so use the more generic public interfaces instead. Signed-off-by: Bjorn Helgaas Index: work7/drivers/rtc/rtc-cmos.c =================================================================== --- work7.orig/drivers/rtc/rtc-cmos.c 2008-03-25 17:04:44.000000000 -0600 +++ work7/drivers/rtc/rtc-cmos.c 2008-03-25 17:04:45.000000000 -0600 @@ -855,11 +855,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) -- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/