Re: [PATCH 2/2] regulator: hi655x: Bump parent pmic module use count

From: Mark Brown
Date: Tue Mar 21 2017 - 07:08:19 EST


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