|
@@ -953,8 +953,6 @@ int __uio_register_device(struct module *owner,
|
|
if (ret)
|
|
if (ret)
|
|
goto err_uio_dev_add_attributes;
|
|
goto err_uio_dev_add_attributes;
|
|
|
|
|
|
- info->uio_dev = idev;
|
|
|
|
-
|
|
|
|
if (info->irq && (info->irq != UIO_IRQ_CUSTOM)) {
|
|
if (info->irq && (info->irq != UIO_IRQ_CUSTOM)) {
|
|
/*
|
|
/*
|
|
* Note that we deliberately don't use devm_request_irq
|
|
* Note that we deliberately don't use devm_request_irq
|
|
@@ -971,6 +969,7 @@ int __uio_register_device(struct module *owner,
|
|
goto err_request_irq;
|
|
goto err_request_irq;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ info->uio_dev = idev;
|
|
return 0;
|
|
return 0;
|
|
|
|
|
|
err_request_irq:
|
|
err_request_irq:
|