lkml.org 
[lkml]   [2017]   [Mar]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/2] regulator: hi655x: Bump parent pmic module use count
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.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2017-03-21 12:08    [W:0.089 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site