]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerMatthew Garrett <matthew.garrett@nebula.com>
Wed, 20 Nov 2013 23:51:15 +0000 (18:51 -0500)
commitfef3dfe3bf1411fa21edff82dbd4121be5c357f4
tree70f8e416b5af1ff6e3a31d6af483b3c39d54a9e6
parent9d19b97c193edd9bdba951f3e89d01c78c4f1dd6
thinkpad_acpi: Fix build error when CONFIG_SND_MAX_CARDS > 32

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.

Cc: <stable@vger.kernel.org> [v3.11+]
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
drivers/platform/x86/thinkpad_acpi.c