spi: microchip-core: fix and cleanups

Merge series from Yang Yingliang <yangyingliang@huawei.com>:

Patch #1 fix a UAF in mchp_corespi_remove().
Patch #2 and #3 some cleanups to simpify code.
This commit is contained in:
Mark Brown 2022-07-13 15:19:13 +01:00
commit 1ed34d367b
No known key found for this signature in database
GPG key ID: 24D68B725D5487D0