From fbc1338474bf7a66af0ea84b295dd841c9a21989 Mon Sep 17 00:00:00 2001 From: adrian Date: Mon, 25 Apr 2016 16:53:13 +0000 Subject: [PATCH] [bhnd] Fix ChipCommon probing. ChipCommon probing uses mapping table "chipc_devices". It calls bhnd_device_lookup, which iterate over mapping table with end condition: entry->desc != NULL So if mapping table contains row with description equals to NULL, it will stop processing of mapping. I.e. description is mandatory field and should be not NULL. This patch corrects mapping table for ChipCommon. Submitted by: Michael Zhilin Differential Revision: https://reviews.freebsd.org/D6088 --- sys/dev/bhnd/cores/chipc/chipc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/bhnd/cores/chipc/chipc.c b/sys/dev/bhnd/cores/chipc/chipc.c index 2058e10ce631..f48fe6dfecc1 100644 --- a/sys/dev/bhnd/cores/chipc/chipc.c +++ b/sys/dev/bhnd/cores/chipc/chipc.c @@ -66,7 +66,7 @@ static struct bhnd_device_quirk chipc_quirks[]; /* Supported device identifiers */ static const struct bhnd_device chipc_devices[] = { - BHND_DEVICE(CC, NULL, chipc_quirks), + BHND_DEVICE(CC, "CC", chipc_quirks), BHND_DEVICE_END };