Date: Mon, 25 Apr 2016 16:53:14 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r298583 - head/sys/dev/bhnd/cores/chipc Message-ID: <201604251653.u3PGrEUT027749@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: adrian Date: Mon Apr 25 16:53:13 2016 New Revision: 298583 URL: https://svnweb.freebsd.org/changeset/base/298583 Log: [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 <mizhka@gmail.com> Differential Revision: https://reviews.freebsd.org/D6088 Modified: head/sys/dev/bhnd/cores/chipc/chipc.c Modified: head/sys/dev/bhnd/cores/chipc/chipc.c ============================================================================== --- head/sys/dev/bhnd/cores/chipc/chipc.c Mon Apr 25 16:13:04 2016 (r298582) +++ head/sys/dev/bhnd/cores/chipc/chipc.c Mon Apr 25 16:53:13 2016 (r298583) @@ -66,7 +66,7 @@ static struct bhnd_device_quirk chipc_qu /* 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 };
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604251653.u3PGrEUT027749>