Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1605502

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

From Mark Brown <broonie@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH 2/2] regulator: hi655x: Bump parent pmic module use count
Date 2017-03-21 12:10 +0100
Message-ID <tnpPP-2un-7@gated-at.bofh.it> (permalink)
References <tnk3L-6MU-5@gated-at.bofh.it> <tnk3L-6MU-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

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.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 2/2] regulator: hi655x: Bump parent pmic module use count Jeremy Linton <lintonrjeremy@gmail.com> - 2017-03-21 06:00 +0100
  Re: [PATCH 2/2] regulator: hi655x: Bump parent pmic module use count Mark Brown <broonie@kernel.org> - 2017-03-21 12:10 +0100
    Re: [PATCH 2/2] regulator: hi655x: Bump parent pmic module use count Jeremy Linton <lintonrjeremy@gmail.com> - 2017-03-21 21:30 +0100
      Re: [PATCH 2/2] regulator: hi655x: Bump parent pmic module use count Mark Brown <broonie@kernel.org> - 2017-03-22 13:50 +0100

csiph-web