Pass correct type of argument to ti_gpio_unmask_irq in ti_gpio_activate_resource

This commit is contained in:
gonzo 2015-08-03 01:22:49 +00:00
parent 296c3c4f2f
commit 4129b1a798

View File

@ -849,14 +849,16 @@ static int
ti_gpio_activate_resource(device_t dev, device_t child, int type, int rid,
struct resource *res)
{
int pin;
struct ti_gpio_mask_arg mask_arg;
if (type != SYS_RES_IRQ)
return (ENXIO);
/* Unmask the interrupt. */
pin = rman_get_start(res);
ti_gpio_unmask_irq((void *)(uintptr_t)pin);
mask_arg.pin = rman_get_start(res);
mask_arg.softc = device_get_softc(dev);
ti_gpio_unmask_irq((void *)&mask_arg);
return (0);
}