OMAP clockdomain: if no autodeps exist, don't try to add or remove them
authorPaul Walmsley <paul@pwsan.com>
Tue, 23 Feb 2010 05:09:35 +0000 (22:09 -0700)
committerPaul Walmsley <paul@pwsan.com>
Thu, 25 Feb 2010 00:45:15 +0000 (17:45 -0700)
commitad9561609c41f704fd82facd37127e957bcaea94
tree13599ee81f5c6b673d72b1fb126f79e386234ab7
parent43b40992ce21def8d5957f32d7ddb728af89bfce
OMAP clockdomain: if no autodeps exist, don't try to add or remove them

_clkdm_add_autodeps() and _clkdm_del_autodeps() will attempt to dereference
a NULL pointer if no autodeps were supplied to clkdm_init().

Based on a patch from Roel Kluin <roel.kluin@gmail.com> - thanks Roel.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Roel Kluin <roel.kluin@gmail.com>
arch/arm/mach-omap2/clockdomain.c