Re: [PATCH] drm/exynos: gsc: Get device id from OF alias

2018-06-20 Thread Andrzej Hajda
On 20.06.2018 13:53, Krzysztof Kozlowski wrote: > On 20 June 2018 at 13:38, Andrzej Hajda wrote: >> Hi Krzysztof, >> >> On 20.06.2018 12:40, Krzysztof Kozlowski wrote: >>> On 15 June 2018 at 14:26, Marek Szyprowski wrote: Platform devices instantiated from device-tree always have pdev->id se

Re: [PATCH] drm/exynos: gsc: Get device id from OF alias

2018-06-20 Thread Krzysztof Kozlowski
On 20 June 2018 at 13:38, Andrzej Hajda wrote: > Hi Krzysztof, > > On 20.06.2018 12:40, Krzysztof Kozlowski wrote: >> On 15 June 2018 at 14:26, Marek Szyprowski wrote: >>> Platform devices instantiated from device-tree always have pdev->id set to >>> -1, so use of_get_alias_id() helper to retriev

Re: [PATCH] drm/exynos: gsc: Get device id from OF alias

2018-06-20 Thread Andrzej Hajda
Hi Krzysztof, On 20.06.2018 12:40, Krzysztof Kozlowski wrote: > On 15 June 2018 at 14:26, Marek Szyprowski wrote: >> Platform devices instantiated from device-tree always have pdev->id set to >> -1, so use of_get_alias_id() helper to retrieve proper device id. >> >> Signed-off-by: Marek Szyprowsk

Re: [PATCH] drm/exynos: gsc: Get device id from OF alias

2018-06-20 Thread Krzysztof Kozlowski
On 15 June 2018 at 14:26, Marek Szyprowski wrote: > Platform devices instantiated from device-tree always have pdev->id set to > -1, so use of_get_alias_id() helper to retrieve proper device id. > > Signed-off-by: Marek Szyprowski > --- > drivers/gpu/drm/exynos/exynos_drm_gsc.c | 9 +++-- >

[PATCH] drm/exynos: gsc: Get device id from OF alias

2018-06-15 Thread Marek Szyprowski
Platform devices instantiated from device-tree always have pdev->id set to -1, so use of_get_alias_id() helper to retrieve proper device id. Signed-off-by: Marek Szyprowski --- drivers/gpu/drm/exynos/exynos_drm_gsc.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/dr