lkml.org 
[lkml]   [2014]   [Feb]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 1/5] Drivers: hv: vmbus: Extract the mmio information from DSDT
On Mon, Feb 24, 2014 at 11:25:12AM +0100, Gerd Hoffmann wrote:
> -static acpi_status vmbus_walk_resources(struct acpi_resource *res, void *irq)
> +static acpi_status vmbus_walk_resources(struct acpi_resource *res, void *ctx)
> {
> + switch (res->type) {
> + case ACPI_RESOURCE_TYPE_IRQ:
> + irq = res->data.irq.interrupts[0];
>
> - if (res->type == ACPI_RESOURCE_TYPE_IRQ) {
> - struct acpi_resource_irq *irqp;
> - irqp = &res->data.irq;
> -
> - *((unsigned int *)irq) = irqp->interrupts[0];

Add a /* fall through */ comment here.

> + case ACPI_RESOURCE_TYPE_ADDRESS64:
> + hyperv_mmio_start = res->data.address64.minimum;
> + hyperv_mmio_size = res->data.address64.address_length;
> }

regards,
dan carpenter



\
 
 \ /
  Last update: 2014-02-24 12:21    [W:0.774 / U:1.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site