[PATCH v4 03/22] of/platform: Point to struct device from device node

2015-09-07 Thread Tomeu Vizoso
When adding a platform device, set the device node's device member to point to it. This speeds lookups considerably and is safe because we only create one platform device for any given device node. Signed-off-by: Tomeu Vizoso --- Changes in v4: None Changes in v3: None Changes in v2: None

[PATCH v4 03/22] of/platform: Point to struct device from device node

2015-09-07 Thread Tomeu Vizoso
When adding a platform device, set the device node's device member to point to it. This speeds lookups considerably and is safe because we only create one platform device for any given device node. Signed-off-by: Tomeu Vizoso --- Changes in v4: None Changes in v3: