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

From: Mark Brown
Date: Mon Apr 03 2017 - 13:49:56 EST


On Mon, Apr 03, 2017 at 12:28:43AM -0500, Jeremy Linton wrote:
> The hi655x-regulator driver depends on the parent pmic/mfc
> device driver but doesn't increase its use count. This results
> in system crashes if the parent module is unloaded while the
> regulators are still in use. Add explicit module get/put
> calls to keep the parent from being unloaded.

Once again, it is a complete hack to do this at the individual driver
level. Please don't ignore review feedback.

Attachment: signature.asc
Description: PGP signature