Option -p implies -c -d

Instead of error'ing out, in case of the -p option, simply assume -cd

Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
diff --git a/powerdebug.c b/powerdebug.c
index b92826b..2f0992b 100644
--- a/powerdebug.c
+++ b/powerdebug.c
@@ -119,6 +119,8 @@
 				fprintf(stderr, "failed to allocate memory");
 				return -1;
 			}
+			options->dump = true;   /* Assume -dc in case of -p */
+			options->clocks = true;
 			break;
 		case 't':
 			options->ticktime = atoi(optarg);
@@ -146,12 +148,6 @@
 		options->regulators = options->clocks = options->sensors = true;
 	}
 
-	if (options->findparent && (!options->clocks || !options->dump)) {
-		fprintf(stderr, "-p option passed without -c and -d."
-			" Exiting...\n");
-		return -1;
-	}
-
 	if (!options->dump && options->selectedwindow == -1)
 		options->selectedwindow = CLOCK;