summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-04-14 07:55:22 +0200
committerTakashi Iwai <tiwai@suse.de>2015-04-14 07:55:22 +0200
commit6dc581c9055be0c19a03a433a60eb858fcbbb040 (patch)
treea17545bf68ce7e4addcbf6f219e213310831710a
parent0ddb8dfbbd639816cc134fe72fd24a5d0da04de0 (diff)
downloadalsa-driver-build-unstable-6dc581c9055be0c19a03a433a60eb858fcbbb040.tar.gz
Fix typos in hda_codec.patch
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--alsa/pci/hda/hda_codec.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/alsa/pci/hda/hda_codec.c b/alsa/pci/hda/hda_codec.c
index c122956e2..780739960 100644
--- a/alsa/pci/hda/hda_codec.c
+++ b/alsa/pci/hda/hda_codec.c
@@ -1,5 +1,5 @@
#include "adriver.h"
-#if LINUX_VERSION_CODE <= KERNEL_VERSION(3, 15, 0)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 15, 0)
#include <linux/device.h>
static int pm_runtime_force_suspend(struct device *dev);
static int pm_runtime_force_resume(struct device *dev);
@@ -15,12 +15,12 @@ static int pm_runtime_force_suspend(struct device *dev)
if (pm_runtime_status_suspended(dev))
return 0;
- if (!device->driver->pm || !device->driver->pm->runtime_suspend) {
+ if (!dev->driver->pm || !dev->driver->pm->runtime_suspend) {
ret = -ENOSYS;
goto err;
}
- ret = device->driver->pm->runtime_suspend(dev);
+ ret = dev->driver->pm->runtime_suspend(dev);
if (ret)
goto err;
@@ -35,12 +35,12 @@ static int pm_runtime_force_resume(struct device *dev)
{
int ret = 0;
- if (!device->driver->pm || !device->driver->pm->runtime_resume) {
+ if (!dev->driver->pm || !dev->driver->pm->runtime_resume) {
ret = -ENOSYS;
goto out;
}
- ret = device->driver->pm->runtime_resume(dev);
+ ret = dev->driver->pm->runtime_resume(dev);
if (ret)
goto out;