--- maestro3.c.orig	2008-10-27 10:34:38.000000000 +0100
+++ maestro3.c	2008-10-29 09:36:02.000000000 +0100
@@ -1,3 +1,4 @@
+#include "adriver.h"
 /*
  * Driver for ESS Maestro3/Allegro (ES1988) soundcards.
  * Copyright (c) 2000 by Zach Brown <zab@zabbo.net>
@@ -2595,15 +2596,25 @@
 		return -ENOMEM;
 	}
 
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 5, 0)
 	err = request_firmware(&chip->assp_kernel_image,
 			       "ess/maestro3_assp_kernel.fw", &pci->dev);
+#else
+	err = request_firmware(&chip->assp_kernel_image,
+			       "ess/maestro3_assp_kernel.fw", pci_name(pci));
+#endif
 	if (err < 0) {
 		snd_m3_free(chip);
 		return err;
 	}
 
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 5, 0)
 	err = request_firmware(&chip->assp_minisrc_image,
 			       "ess/maestro3_assp_minisrc.fw", &pci->dev);
+#else
+	err = request_firmware(&chip->assp_kernel_image,
+			       "ess/maestro3_assp_minisrc.fw", pci_name(pci));
+#endif
 	if (err < 0) {
 		snd_m3_free(chip);
 		return err;
@@ -2771,3 +2782,5 @@
 
 module_init(alsa_card_m3_init)
 module_exit(alsa_card_m3_exit)
+
+EXPORT_NO_SYMBOLS;
