diff options
Diffstat (limited to 'drivers/acpi/acpi_lpss.c')
-rw-r--r-- | drivers/acpi/acpi_lpss.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/acpi/acpi_lpss.c b/drivers/acpi/acpi_lpss.c index 08fbff507dc4..02e835f3cf8a 100644 --- a/drivers/acpi/acpi_lpss.c +++ b/drivers/acpi/acpi_lpss.c | |||
@@ -307,7 +307,7 @@ static int acpi_lpss_create_device(struct acpi_device *adev, | |||
307 | { | 307 | { |
308 | struct lpss_device_desc *dev_desc; | 308 | struct lpss_device_desc *dev_desc; |
309 | struct lpss_private_data *pdata; | 309 | struct lpss_private_data *pdata; |
310 | struct resource_list_entry *rentry; | 310 | struct resource_entry *rentry; |
311 | struct list_head resource_list; | 311 | struct list_head resource_list; |
312 | struct platform_device *pdev; | 312 | struct platform_device *pdev; |
313 | int ret; | 313 | int ret; |
@@ -327,12 +327,12 @@ static int acpi_lpss_create_device(struct acpi_device *adev, | |||
327 | goto err_out; | 327 | goto err_out; |
328 | 328 | ||
329 | list_for_each_entry(rentry, &resource_list, node) | 329 | list_for_each_entry(rentry, &resource_list, node) |
330 | if (resource_type(&rentry->res) == IORESOURCE_MEM) { | 330 | if (resource_type(rentry->res) == IORESOURCE_MEM) { |
331 | if (dev_desc->prv_size_override) | 331 | if (dev_desc->prv_size_override) |
332 | pdata->mmio_size = dev_desc->prv_size_override; | 332 | pdata->mmio_size = dev_desc->prv_size_override; |
333 | else | 333 | else |
334 | pdata->mmio_size = resource_size(&rentry->res); | 334 | pdata->mmio_size = resource_size(rentry->res); |
335 | pdata->mmio_base = ioremap(rentry->res.start, | 335 | pdata->mmio_base = ioremap(rentry->res->start, |
336 | pdata->mmio_size); | 336 | pdata->mmio_size); |
337 | if (!pdata->mmio_base) | 337 | if (!pdata->mmio_base) |
338 | goto err_out; | 338 | goto err_out; |