thinkpad_acpi: Fix build error when CONFIG_SND_MAX_CARDS > 32
authorTakashi Iwai <tiwai@suse.de>
Thu, 24 Oct 2013 14:06:32 +0000 (16:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Nov 2013 18:42:15 +0000 (10:42 -0800)
commitc015250cef8e61c1f32cecdcf36b286dcecbc419
treefd57982a4f019144428740d70b560e90f43be22e
parent3cc16ca407c0284e4a4ee72a360b264e068772c2
thinkpad_acpi: Fix build error when CONFIG_SND_MAX_CARDS > 32

commit cab6661344f14a09d7aecdf821a40f68ef9b18cc upstream.

SNDRV_CARDS can be specified via Kconfig since 3.11 kernel, so this
can be over 32bit integer range, which leads to a build error.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/platform/x86/thinkpad_acpi.c