Commit 93818a7c authored by Jaroslav Kysela's avatar Jaroslav Kysela

ALSA CVS update

MPU401 UART
use acpi_register_gsi
Signed-off-by: default avatarClemens Ladisch <clemens@ladisch.de>
parent 5a9b6190
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
#include <sound/driver.h> #include <sound/driver.h>
#include <linux/init.h> #include <linux/init.h>
#ifdef CONFIG_ACPI_BUS #ifdef CONFIG_ACPI_BUS
#include <acpi/acpi_bus.h> #include <linux/acpi.h>
#endif #endif
#include <linux/moduleparam.h> #include <linux/moduleparam.h>
#include <sound/core.h> #include <sound/core.h>
...@@ -91,13 +91,9 @@ static acpi_status __devinit snd_mpu401_acpi_resource(struct acpi_resource *res, ...@@ -91,13 +91,9 @@ static acpi_status __devinit snd_mpu401_acpi_resource(struct acpi_resource *res,
if (res->id == ACPI_RSTYPE_IRQ) { if (res->id == ACPI_RSTYPE_IRQ) {
if (res->data.irq.number_of_interrupts > 0) { if (res->data.irq.number_of_interrupts > 0) {
#ifdef CONFIG_IA64 resources->irq = acpi_register_gsi(res->data.irq.interrupts[0],
resources->irq = acpi_register_irq(res->data.irq.interrupts[0], res->data.irq.edge_level,
res->data.irq.active_high_low, res->data.irq.active_high_low);
res->data.irq.edge_level);
#else
resources->irq = res->data.irq.interrupts[0];
#endif
} }
} else if (res->id == ACPI_RSTYPE_IO) { } else if (res->id == ACPI_RSTYPE_IO) {
if (res->data.io.range_length >= 2) { if (res->data.io.range_length >= 2) {
...@@ -168,7 +164,7 @@ static int __devinit snd_card_mpu401_probe(int dev, struct acpi_device *device) ...@@ -168,7 +164,7 @@ static int __devinit snd_card_mpu401_probe(int dev, struct acpi_device *device)
} }
#ifdef USE_ACPI_PNP #ifdef USE_ACPI_PNP
if (device) { if (device) {
strcat(card->longname, ", bus id "); strcat(card->longname, ", ACPI id ");
strlcat(card->longname, acpi_device_bid(device), sizeof(card->longname)); strlcat(card->longname, acpi_device_bid(device), sizeof(card->longname));
} }
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment