[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <59E711B7.90409@rock-chips.com>
Date: Wed, 18 Oct 2017 16:32:55 +0800
From: jeffy <jeffy.chen@...k-chips.com>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
CC: linux-kernel@...r.kernel.org, dmitry.torokhov@...il.com,
heiko@...ech.de, briannorris@...omium.org, rjw@...ysocki.net,
dianders@...omium.org, tfiga@...omium.org, broonie@...nel.org,
seanpaul@...omium.org, thierry.reding@...il.com
Subject: Re: [PATCH] driver core: Make sure device detached from driver before
deleting it
Hi Greg,
On 10/18/2017 03:33 PM, Greg Kroah-Hartman wrote:
> The SPI core should have some internal housekeeping to do there as well,
> right? Is this the only bus that gets this "wrong"?
>
hmm, i checked i2c code, it has the same issue:
void i2c_unregister_device(struct i2c_client *client)
{
if (client->dev.of_node)
of_node_clear_flag(client->dev.of_node, OF_POPULATED);
if (ACPI_COMPANION(&client->dev))
acpi_device_clear_enumerated(ACPI_COMPANION(&client->dev));
device_unregister(&client->dev);
}
not sure about others, maybe mfd-core too...
> thanks,
>
> greg k-h
>
>
>
Powered by blists - more mailing lists