On Mon, Mar 20, 2017 at 11:53:41PM -0500, Jeremy Linton wrote:

> +     if (!try_module_get(parent->driver->owner)) {
> +             dev_err(&pdev->dev, "unable to get parent module\n");
> +             return -ENODEV;
> +     }
> +

If this makes sense it should be being done in the driver core, not open
coded in individual drivers.

Attachment: signature.asc
Description: PGP signature

Reply via email to