aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/tests/fpga-mgr-test.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <[email protected]>2025-05-01 15:02:01 +0000
committerMark Brown <[email protected]>2025-05-05 10:31:28 +0000
commit222a87f6b94f6f177e896d6fcdc7881480344e34 (patch)
treee6643257b234d012859937ba0e17bfbdf05da56e /drivers/fpga/tests/fpga-mgr-test.c
parentspi: cs42l43: Make handling missing spk-id GPIOs explicit (diff)
downloadkernel-222a87f6b94f6f177e896d6fcdc7881480344e34.tar.gz
kernel-222a87f6b94f6f177e896d6fcdc7881480344e34.zip
spi: cadence-quadspi: Assume device could match via platform
Driver has only of_device_id table, however it also has MODULE_ALIAS() for platform name, thus assume there is a configuration where this can be loaded outside of OF system. In such case of_device_get_match_data() will return NULL, which is already checked in one place of probe() function but not in the other, leading to Smatch warning: drivers/spi/spi-cadence-quadspi.c:1942 cqspi_probe() error: we previously assumed 'ddata' could be null (see line 1885) Driver should be consistent, so assume device can be matched via platform bus and of_device_get_match_data() can indeed return NULL. This is also possible with malformed DTS on OF-platform: no unit address and device node name matching driver name. Signed-off-by: Krzysztof Kozlowski <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'drivers/fpga/tests/fpga-mgr-test.c')
0 files changed, 0 insertions, 0 deletions