clk: davinci: psc: allow for dev == NULL
authorDavid Lechner <david@lechnology.com>
Fri, 25 May 2018 18:11:49 +0000 (13:11 -0500)
committerMichael Turquette <mturquette@baylibre.com>
Wed, 30 May 2018 19:48:44 +0000 (12:48 -0700)
commit043eaa70ad736380a631e820e32ad9176b020887
treecb13733532485db51dbcbb238138fb4470ba8ec2
parent17d8bacf19bb5ea5f258f9c0644d5688f9ba03a9
clk: davinci: psc: allow for dev == NULL

On some davinci SoCs, we need to register the PSC clocks during early
boot because they are needed for clocksource/clockevent. These changes
allow for dev == NULL because in this case, we won't have a platform
device for the clocks.

Signed-off-by: David Lechner <david@lechnology.com>
Reviewed-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Michael Turquette <mturquette@baylibre.com>
Link: lkml.kernel.org/r/20180525181150.17873-9-david@lechnology.com
drivers/clk/davinci/psc-dm355.c
drivers/clk/davinci/psc-dm365.c
drivers/clk/davinci/psc-dm644x.c
drivers/clk/davinci/psc-dm646x.c
drivers/clk/davinci/psc.c
include/linux/clk/davinci.h