summaryrefslogtreecommitdiff
path: root/target/linux/s3c24xx/patches-2.6.24/1004-asoc-neo1973_wm8753-power.patch.patch
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-03-14 15:52:42 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-03-14 15:52:42 +0000
commit26e3776a22bf894ced5af4c28968dc1dc99968eb (patch)
tree2d38a3789e27a423439c37a45a09cae31990a615 /target/linux/s3c24xx/patches-2.6.24/1004-asoc-neo1973_wm8753-power.patch.patch
parent4bd70fc26256cf485f19e0c8b881e078dc36134f (diff)
nuke obsolete kernel stuff
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14875 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/s3c24xx/patches-2.6.24/1004-asoc-neo1973_wm8753-power.patch.patch')
-rw-r--r--target/linux/s3c24xx/patches-2.6.24/1004-asoc-neo1973_wm8753-power.patch.patch62
1 files changed, 0 insertions, 62 deletions
diff --git a/target/linux/s3c24xx/patches-2.6.24/1004-asoc-neo1973_wm8753-power.patch.patch b/target/linux/s3c24xx/patches-2.6.24/1004-asoc-neo1973_wm8753-power.patch.patch
deleted file mode 100644
index ffcbfce459..0000000000
--- a/target/linux/s3c24xx/patches-2.6.24/1004-asoc-neo1973_wm8753-power.patch.patch
+++ /dev/null
@@ -1,62 +0,0 @@
-From dee63031aaa4377dea64113b0f6789ea053087fd Mon Sep 17 00:00:00 2001
-From: mokopatches <mokopatches@openmoko.org>
-Date: Fri, 4 Apr 2008 11:29:38 +0100
-Subject: [PATCH] asoc-neo1973_wm8753-power.patch
-
----
- sound/soc/s3c24xx/neo1973_wm8753.c | 32 ++++++++++++++++++++++++++++++++
- 1 files changed, 32 insertions(+), 0 deletions(-)
-
-diff --git a/sound/soc/s3c24xx/neo1973_wm8753.c b/sound/soc/s3c24xx/neo1973_wm8753.c
-index 679b99d..0289d1d 100644
---- a/sound/soc/s3c24xx/neo1973_wm8753.c
-+++ b/sound/soc/s3c24xx/neo1973_wm8753.c
-@@ -617,6 +617,35 @@ static int lm4857_i2c_attach(struct i2c_adapter *adap)
- return i2c_probe(adap, &addr_data, lm4857_amp_probe);
- }
-
-+static u8 lm4857_state;
-+
-+static int lm4857_suspend(struct i2c_client *dev, pm_message_t state)
-+{
-+ dev_dbg(&dev->dev, "lm4857_suspend\n");
-+ lm4857_state = lm4857_regs[LM4857_CTRL] & 0xf;
-+ if (lm4857_state) {
-+ lm4857_regs[LM4857_CTRL] &= 0xf0;
-+ lm4857_write_regs();
-+ }
-+ return 0;
-+}
-+
-+static int lm4857_resume(struct i2c_client *dev)
-+{
-+ if (lm4857_state) {
-+ lm4857_regs[LM4857_CTRL] |= (lm4857_state & 0x0f);
-+ lm4857_write_regs();
-+ }
-+ return 0;
-+}
-+
-+static void lm4857_shutdown(struct i2c_client *dev)
-+{
-+ dev_dbg(&dev->dev, "lm4857_shutdown\n");
-+ lm4857_regs[LM4857_CTRL] &= 0xf0;
-+ lm4857_write_regs();
-+}
-+
- /* corgi i2c codec control layer */
- static struct i2c_driver lm4857_i2c_driver = {
- .driver = {
-@@ -624,6 +653,9 @@ static struct i2c_driver lm4857_i2c_driver = {
- .owner = THIS_MODULE,
- },
- .id = I2C_DRIVERID_LM4857,
-+ .suspend = lm4857_suspend,
-+ .resume = lm4857_resume,
-+ .shutdown = lm4857_shutdown,
- .attach_adapter = lm4857_i2c_attach,
- .detach_client = lm4857_i2c_detach,
- .command = NULL,
---
-1.5.6.5
-