From: Ben Gras Date: Thu, 4 Sep 2014 11:46:02 +0000 (+0200) Subject: tps65950: allow 0 as id for qemu beaglexm X-Git-Tag: v3.3.0~19 X-Git-Url: http://zhaoyanbai.com/repos/Bv9ARM.ch06.html?a=commitdiff_plain;h=85ebb0e0c35f8541e39a908766cfc5929ddb8e15;p=minix.git tps65950: allow 0 as id for qemu beaglexm makes booting on qemu beaglexm a lot prettier. Change-Id: I45d0383abbf0d21227a95f538ed78ca6c1ed7871 --- diff --git a/minix/drivers/power/tps65950/tps65950.c b/minix/drivers/power/tps65950/tps65950.c index e1dd0814b..16cd4951f 100644 --- a/minix/drivers/power/tps65950/tps65950.c +++ b/minix/drivers/power/tps65950/tps65950.c @@ -136,6 +136,9 @@ check_revision(void) case IDCODE_REV_1_2: log_debug(&log, "TPS65950 rev 1.2\n"); break; + case 0: + log_debug(&log, "TPS65950 missing in qemu\n"); + break; default: log_warn(&log, "Unexpected IDCODE: 0x%x\n", idcode); return -1;