Re: [PATCH] of/platform: Move platform devices under /sys/devices/platform

2014-11-18 Thread Grant Likely
On Tue, 18 Nov 2014 11:36:19 +0100 , Andrzej Hajda wrote: > On 11/04/2014 11:45 AM, Grant Likely wrote: > > Currently the devices created by drivers/of/platform.c get created at > > the root of /sys/devices. This goes against the typical pattern for > > sysfs where the top level /sys/devices stru

Re: [PATCH] of/platform: Move platform devices under /sys/devices/platform

2014-11-18 Thread Andrzej Hajda
On 11/04/2014 11:45 AM, Grant Likely wrote: > Currently the devices created by drivers/of/platform.c get created at > the root of /sys/devices. This goes against the typical pattern for > sysfs where the top level /sys/devices structure contains categories of > devices, and the structure of devices

Re: [PATCH] of/platform: Move platform devices under /sys/devices/platform

2014-11-04 Thread Greg Kroah-Hartman
On Tue, Nov 04, 2014 at 10:45:20AM +, Grant Likely wrote: > Currently the devices created by drivers/of/platform.c get created at > the root of /sys/devices. This goes against the typical pattern for > sysfs where the top level /sys/devices structure contains categories of > devices, and the st

Re: [PATCH] of/platform: Move platform devices under /sys/devices/platform

2014-11-04 Thread Benjamin Herrenschmidt
On Tue, 2014-11-04 at 10:45 +, Grant Likely wrote: > Currently the devices created by drivers/of/platform.c get created at > the root of /sys/devices. This goes against the typical pattern for > sysfs where the top level /sys/devices structure contains categories of > devices, and the structure

[PATCH] of/platform: Move platform devices under /sys/devices/platform

2014-11-04 Thread Grant Likely
Currently the devices created by drivers/of/platform.c get created at the root of /sys/devices. This goes against the typical pattern for sysfs where the top level /sys/devices structure contains categories of devices, and the structure of devices is placed below that. To fix this, make the code in