]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: ti: davinci-mcasp: Use platform_get_irq_byname_optional
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Fri, 6 Nov 2020 07:25:48 +0000 (09:25 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 6 Nov 2020 17:46:01 +0000 (17:46 +0000)
commitacf3b14ccf9c87a6f09afb5816e002f301ce0b99
tree4ef792bebeab72633f8ab9318d25ac7b27c4c822
parent2a039b7610f5405a19b96bd8c2d5fd517ecd1362
ASoC: ti: davinci-mcasp: Use platform_get_irq_byname_optional

Depending on the integration of McASP either the 'common' or the
'rx' and 'tx' or only the 'tx' interrupt number is valid, provided.

By switching to platform_get_irq_byname_optional() we can clean up the
bootlog from messages like:

davinci-mcasp 2ba0000.mcasp: IRQ common not found

The irq number == 0 is not valid, fix the check at the same time.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Link: https://lore.kernel.org/r/20201106072551.689-2-peter.ujfalusi@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/ti/davinci-mcasp.c