X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=arch%2Farm%2Fmach-prima2%2Fpm.c;h=8f595c0cc8d9390124a2378b04e62f8b95307e34;hb=07e633984a746aff1e1b2cedf37d31db615bba83;hp=9936c180bf016bbf769e60a16309c603c69c1a6f;hpb=ea882c2ece7c68462a3734c71c60e2572e528fe7;p=firefly-linux-kernel-4.4.55.git diff --git a/arch/arm/mach-prima2/pm.c b/arch/arm/mach-prima2/pm.c index 9936c180bf01..8f595c0cc8d9 100644 --- a/arch/arm/mach-prima2/pm.c +++ b/arch/arm/mach-prima2/pm.c @@ -101,8 +101,10 @@ static int __init sirfsoc_of_pwrc_init(void) struct device_node *np; np = of_find_matching_node(NULL, pwrc_ids); - if (!np) - panic("unable to find compatible pwrc node in dtb\n"); + if (!np) { + pr_err("unable to find compatible sirf pwrc node in dtb\n"); + return -ENOENT; + } /* * pwrc behind rtciobrg is not located in memory space