compat: add compat/compat-2.6.34.c
authorLuis R. Rodriguez <mcgrof@frijolero.org>
Tue, 8 May 2012 01:47:37 +0000 (18:47 -0700)
committerLuis R. Rodriguez <mcgrof@frijolero.org>
Tue, 8 May 2012 01:47:37 +0000 (18:47 -0700)
Forgot to add this file from my previous commit.

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
compat/compat-2.6.34.c [new file with mode: 0644]

diff --git a/compat/compat-2.6.34.c b/compat/compat-2.6.34.c
new file mode 100644 (file)
index 0000000..b905a26
--- /dev/null
@@ -0,0 +1,30 @@
+/*
+ * Copyright 2012    Luis R. Rodriguez <mcgrof@do-not-panic.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * Compatibility file for Linux wireless for kernels 2.6.34.
+ */
+
+#include <linux/mmc/sdio_func.h>
+
+#include "compat-2.6.34.h"
+
+static mmc_pm_flag_t compat_mmc_pm_flags;
+
+void init_compat_mmc_pm_flags(void)
+{
+       compat_mmc_pm_flags = 0;
+}
+
+mmc_pm_flag_t sdio_get_host_pm_caps(struct sdio_func *func)
+{
+       return compat_mmc_pm_flags;
+}
+
+int sdio_set_host_pm_flags(struct sdio_func *func, mmc_pm_flag_t flags)
+{
+       return -EINVAL;
+}