diff options
author | Xiubo Li <xiubli@redhat.com> | 2019-02-13 19:29:31 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-02-15 10:09:14 +0300 |
commit | 8a68c55d15af981361ce324d90ee06e8276d330c (patch) | |
tree | a5769bcf8f4d55c985966c92cd86017bfa484122 | |
parent | 085d735c858934e5d5bfaedb1fc98bd9135e6ff1 (diff) | |
download | linux-8a68c55d15af981361ce324d90ee06e8276d330c.tar.xz |
uio: use request_threaded_irq instead
commit 9421e45f5ff3d558cf8b75a8cc0824530caf3453 upstream.
Prepraing for changing to use mutex lock.
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tommi Rantala <tommi.t.rantala@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/uio/uio.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/uio/uio.c b/drivers/uio/uio.c index 288c4b977184..c97945a3f572 100644 --- a/drivers/uio/uio.c +++ b/drivers/uio/uio.c @@ -911,8 +911,9 @@ int __uio_register_device(struct module *owner, * FDs at the time of unregister and therefore may not be * freed until they are released. */ - ret = request_irq(info->irq, uio_interrupt, - info->irq_flags, info->name, idev); + ret = request_threaded_irq(info->irq, NULL, uio_interrupt, + info->irq_flags, info->name, idev); + if (ret) { info->uio_dev = NULL; goto err_request_irq; |