clocksource: timer-ti-dm: Hook device platform data if not already assigned
authorLadislav Michl <ladis@linux-mips.org>
Thu, 15 Feb 2018 06:01:49 +0000 (11:31 +0530)
committerTony Lindgren <tony@atomide.com>
Thu, 22 Feb 2018 18:54:14 +0000 (10:54 -0800)
commit1a3acad26613fff7c7590ab32ff21f8c2a10fba9
treeb1916138b3dfb99f9f8fb364fac0c6140a66b909
parent76234f7c074ca18c0bfe0b5a608973f9b43c7ebd
clocksource: timer-ti-dm: Hook device platform data if not already assigned

In the case of device tree boot the device platform data is usually
NULL so hook the platform data obtained from the match.
As part of un-constify the platform_data pointer.

Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
Signed-off-by: Keerthy <j-keerthy@ti.com>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/clocksource/timer-ti-dm.c