[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <201312061012.05535.heiko@sntech.de>
Date: Fri, 6 Dec 2013 10:12:05 +0100
From: Heiko Stübner <heiko@...ech.de>
To: Jingoo Han <jg1.han@...sung.com>
Cc: "'Mark Brown'" <broonie@...nel.org>,
"'Liam Girdwood'" <lgirdwood@...il.com>,
linux-kernel@...r.kernel.org, "'Axel Lin'" <axel.lin@...ics.com>
Subject: Re: [PATCH 4/6] regulator: gpio-regulator: use devm_regulator_register()
Hi,
Am Freitag, 6. Dezember 2013, 08:10:42 schrieb Jingoo Han:
> @@ -351,8 +352,6 @@ static int gpio_regulator_remove(struct platform_device
> *pdev) {
> struct gpio_regulator_data *drvdata = platform_get_drvdata(pdev);
>
> - regulator_unregister(drvdata->dev);
> -
> gpio_free_array(drvdata->gpios, drvdata->nr_gpios);
>
> kfree(drvdata->states);
I'm not this firm in the core driver/device behaviour, but when looking at
__device_release_driver I see that the remove callback runs before
devres_release_all, which would effectively free the gpios before the
regulator gets unregistered - is this racy with a regulator change at the same
time?
Heiko
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists