If we fail to read the IRQ type from the interrupt controller don't
fail, just assume a value and solider on - we may fail later when we try
to request the IRQ but it's possible we'll succeed.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
switch (irqd_get_trigger_type(irq_data)) {
case IRQ_TYPE_NONE:
+ default:
/*
* We assume the controller imposes no restrictions,
* so we are able to select active-high
case IRQ_TYPE_LEVEL_LOW:
pdata->irq_active_low = true;
break;
- default:
- dev_err(&i2c->dev,
- "Unsupported IRQ_TYPE %x\n",
- irqd_get_trigger_type(irq_data));
- return -EINVAL;
}
return 0;