SOURCES: alsa-driver-pm-fix.patch (NEW) - compilation fix for mach...
hawk
hawk at pld-linux.org
Wed Oct 10 19:14:01 CEST 2007
Author: hawk Date: Wed Oct 10 17:14:01 2007 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- compilation fix for machines where CONFIG_PM is undefined
---- Files affected:
SOURCES:
alsa-driver-pm-fix.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/alsa-driver-pm-fix.patch
diff -u /dev/null SOURCES/alsa-driver-pm-fix.patch:1.1
--- /dev/null Wed Oct 10 19:14:01 2007
+++ SOURCES/alsa-driver-pm-fix.patch Wed Oct 10 19:13:56 2007
@@ -0,0 +1,47 @@
+--- alsa-driver/acore/misc_driver.c.orig 2007-06-04 09:28:51.000000000 +0200
++++ alsa-driver/acore/misc_driver.c 2007-10-10 19:02:28.000000000 +0200
+@@ -39,6 +39,7 @@
+ }
+ EXPORT_SYMBOL(snd_compat_driver_unregister);
+
++#ifdef CONFIG_PM
+ static int snd_device_pm_callback(struct pm_dev *pm_dev, pm_request_t rqst, void *data)
+ {
+ struct device *dev = data;
+@@ -54,6 +55,7 @@
+ }
+ return 0;
+ }
++#endif
+
+ struct platform_device *
+ snd_platform_device_register_simple(const char *name, int id,
+@@ -990,6 +992,7 @@
+ return 0;
+ }
+
++#ifdef CONFIG_PM
+ static int snd_isa_platform_suspend(struct platform_device *pdev,
+ pm_message_t state)
+ {
+@@ -1014,6 +1016,7 @@
+ return -EINVAL;
+ return p->isa->resume(&pdev->dev, n);
+ }
++#endif
+
+ int snd_isa_register_driver(struct isa_driver *driver, unsigned int nums)
+ {
+@@ -1035,10 +1038,12 @@
+ p->platform.driver.name = driver->driver.name;
+ if (driver->remove)
+ p->platform.remove = snd_isa_platform_remove;
++#ifdef CONFIG_PM
+ if (driver->suspend)
+ p->platform.suspend = snd_isa_platform_suspend;
+ if (driver->resume)
+ p->platform.resume = snd_isa_platform_resume;
++#endif
+ err = platform_driver_register(&p->platform);
+ if (err < 0) {
+ kfree(p);
================================================================
More information about the pld-cvs-commit
mailing list