diff options
-rw-r--r-- | drivers/uio/uio.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/uio/uio.c b/drivers/uio/uio.c index 3f76e38e6f30..15ad3469660d 100644 --- a/drivers/uio/uio.c +++ b/drivers/uio/uio.c | |||
@@ -953,8 +953,6 @@ int __uio_register_device(struct module *owner, | |||
953 | if (ret) | 953 | if (ret) |
954 | goto err_uio_dev_add_attributes; | 954 | goto err_uio_dev_add_attributes; |
955 | 955 | ||
956 | info->uio_dev = idev; | ||
957 | |||
958 | if (info->irq && (info->irq != UIO_IRQ_CUSTOM)) { | 956 | if (info->irq && (info->irq != UIO_IRQ_CUSTOM)) { |
959 | /* | 957 | /* |
960 | * Note that we deliberately don't use devm_request_irq | 958 | * Note that we deliberately don't use devm_request_irq |
@@ -971,6 +969,7 @@ int __uio_register_device(struct module *owner, | |||
971 | goto err_request_irq; | 969 | goto err_request_irq; |
972 | } | 970 | } |
973 | 971 | ||
972 | info->uio_dev = idev; | ||
974 | return 0; | 973 | return 0; |
975 | 974 | ||
976 | err_request_irq: | 975 | err_request_irq: |