mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
iio: pressure: mprls0025pa: fix interrupt flag
Interrupt falling/rising flags should only be defined in the device tree.
Fixes: 713337d914 ("iio: pressure: Honeywell mprls0025pa pressure sensor")
Signed-off-by: Petre Rodan <petre.rodan@subdimension.ro>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
committed by
Jonathan Cameron
parent
583fa86ca5
commit
fff3f1a7d8
@@ -418,10 +418,8 @@ int mpr_common_probe(struct device *dev, const struct mpr_ops *ops, int irq)
|
||||
data->offset = div_s64_rem(offset, NANO, &data->offset2);
|
||||
|
||||
if (data->irq > 0) {
|
||||
ret = devm_request_irq(dev, data->irq, mpr_eoc_handler,
|
||||
IRQF_TRIGGER_RISING,
|
||||
dev_name(dev),
|
||||
data);
|
||||
ret = devm_request_irq(dev, data->irq, mpr_eoc_handler, 0,
|
||||
dev_name(dev), data);
|
||||
if (ret)
|
||||
return dev_err_probe(dev, ret,
|
||||
"request irq %d failed\n", data->irq);
|
||||
|
||||
Reference in New Issue
Block a user