ASoC: Intel: Boards: Fix NULL pointer deref in BYT/CHT

Merge series from Hans de Goede <hdegoede@redhat.com>:

While testing 6.8 on a Bay Trail device with a ALC5640 codec
I noticed a regression in 6.8 which causes a NULL pointer deref
in probe().

All BYT/CHT Intel machine drivers are affected. Patch 1/2 of
this series fixes all of them.

Patch 2/2 adds some small cleanups to cht_bsw_rt5645.c for
issues which I noticed while working on 1/2.
This commit is contained in:
Mark Brown 2024-02-12 01:11:19 +00:00
commit 8c41be2599
No known key found for this signature in database
GPG key ID: 24D68B725D5487D0
8 changed files with 17 additions and 11 deletions