aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpi_lpss.c
diff options
context:
space:
mode:
authorJiang Liu <jiang.liu@linux.intel.com>2015-02-05 00:44:43 -0500
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-02-05 09:09:25 -0500
commit90e97820619dc912b52cc9d103272819d8b51259 (patch)
tree20e8c3000c47b0dea7eca79ef7c49db916606d65 /drivers/acpi/acpi_lpss.c
parent62d1141ff34e35de496ba06491c8e854b23b3f3e (diff)
resources: Move struct resource_list_entry from ACPI into resource core
Currently ACPI, PCI and pnp all implement the same resource list management with different data structure. We need to transfer from one data structure into another when passing resources from one subsystem into another subsystem. So move struct resource_list_entry from ACPI into resource core and rename it as resource_entry, then it could be reused by different subystems and avoid the data structure conversion. Introduce dedicated header file resource_ext.h instead of embedding it into ioport.h to avoid header file inclusion order issues. Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com> Acked-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/acpi_lpss.c')
-rw-r--r--drivers/acpi/acpi_lpss.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/acpi/acpi_lpss.c b/drivers/acpi/acpi_lpss.c
index 4f3febf8a589..dfd1b8095dad 100644
--- a/drivers/acpi/acpi_lpss.c
+++ b/drivers/acpi/acpi_lpss.c
@@ -313,7 +313,7 @@ static int acpi_lpss_create_device(struct acpi_device *adev,
313{ 313{
314 struct lpss_device_desc *dev_desc; 314 struct lpss_device_desc *dev_desc;
315 struct lpss_private_data *pdata; 315 struct lpss_private_data *pdata;
316 struct resource_list_entry *rentry; 316 struct resource_entry *rentry;
317 struct list_head resource_list; 317 struct list_head resource_list;
318 struct platform_device *pdev; 318 struct platform_device *pdev;
319 int ret; 319 int ret;
@@ -333,12 +333,12 @@ static int acpi_lpss_create_device(struct acpi_device *adev,
333 goto err_out; 333 goto err_out;
334 334
335 list_for_each_entry(rentry, &resource_list, node) 335 list_for_each_entry(rentry, &resource_list, node)
336 if (resource_type(&rentry->res) == IORESOURCE_MEM) { 336 if (resource_type(rentry->res) == IORESOURCE_MEM) {
337 if (dev_desc->prv_size_override) 337 if (dev_desc->prv_size_override)
338 pdata->mmio_size = dev_desc->prv_size_override; 338 pdata->mmio_size = dev_desc->prv_size_override;
339 else 339 else
340 pdata->mmio_size = resource_size(&rentry->res); 340 pdata->mmio_size = resource_size(rentry->res);
341 pdata->mmio_base = ioremap(rentry->res.start, 341 pdata->mmio_base = ioremap(rentry->res->start,
342 pdata->mmio_size); 342 pdata->mmio_size);
343 break; 343 break;
344 } 344 }