[ALSA] aoa: platform function gpio: ignore errors from functions that don't exist
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 25 Jul 2006 14:15:07 +0000 (16:15 +0200)
committerJaroslav Kysela <perex@suse.cz>
Thu, 3 Aug 2006 13:21:25 +0000 (15:21 +0200)
commitbe6a83dd668fb8578456b61d9e16a18d9bc37a65
treeb22c2d47bf7448f6fea3f264046bb21af7e86a6b
parent545b07d3620c9eac3349398b5303d20cab260ff6
[ALSA] aoa: platform function gpio: ignore errors from functions that don't exist

Sometimes we simply want to turn off or on everything, and when recently a
warning was added when a certain platform function can't be called, this
triggered all the time in those cases. This patch shows the warning only if
the error was different from the function not existing.
The alternative would be to not even try calling the function when it
doesn't exist by first checking which exist and then only calling those that
do, but that adds complexity that isn't necessary.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
sound/aoa/core/snd-aoa-gpio-pmf.c