aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrea Adami <andrea.adami@gmail.com>2013-07-17 01:33:37 +0200
committerAndrea Adami <andrea.adami@gmail.com>2013-07-19 00:59:17 +0200
commitc417e704f2f3517619fc9922d819010db70bf52d (patch)
treedfacbb0cfb49f028101bdafc194f0cd23e827717
parenta96da8d93364e7265cc8c1fd409fb6e6f7d1f882 (diff)
downloadmeta-handheld-c417e704f2f3517619fc9922d819010db70bf52d.tar.gz
linux-yocto-tiny-kexecboot_3.8: add collie_battery-dev-pm.patch from linux-yocto_3.8
Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
-rw-r--r--recipes-kernel/linux/linux-yocto-tiny-kexecboot-3.8/patches/patches-power/collie_battery-dev-pm.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-yocto-tiny-kexecboot-3.8/patches/patches-power/collie_battery-dev-pm.patch b/recipes-kernel/linux/linux-yocto-tiny-kexecboot-3.8/patches/patches-power/collie_battery-dev-pm.patch
new file mode 100644
index 0000000..4792c32
--- /dev/null
+++ b/recipes-kernel/linux/linux-yocto-tiny-kexecboot-3.8/patches/patches-power/collie_battery-dev-pm.patch
@@ -0,0 +1,39 @@
+From 94010e3700b65986c65960e2b7a0966773928347 Mon Sep 17 00:00:00 2001
+From: Andrea Adami <andrea.adami@gmail.com>
+Date: Tue, 16 Jul 2013 17:33:39 +0200
+Subject: [PATCH] collie_battery.c: convert to use dev_pm_ops
+
+Fix
+linux/drivers/power/collie_battery.c:372:2: warning: initialization from
+incompatible pointer type [enabled by default]
+linux/drivers/power/collie_battery.c:372:2: warning: (near initialization
+for 'collie_bat_driver.suspend') [enabled by default]
+
+Referencess:
+MFD: ucb1x00-core: convert to use dev_pm_ops
+https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/include/linux/mfd?id=5a09b7120a965a7d7e8494d0ed509135bbce0118
+
+MFD: mcp-core: remove legacy driver suspend/resume methods
+https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/include/linux/mfd?id=cf4abfcc0df2985ff6061f74e63b8353f2a1d0bc
+
+Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
+---
+ drivers/power/collie_battery.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/drivers/power/collie_battery.c b/drivers/power/collie_battery.c
+index c58d0e3..d02ae02 100644
+--- a/drivers/power/collie_battery.c
++++ b/drivers/power/collie_battery.c
+@@ -287,7 +287,7 @@ static struct gpio collie_batt_gpios[] = {
+ };
+
+ #ifdef CONFIG_PM
+-static int collie_bat_suspend(struct ucb1x00_dev *dev, pm_message_t state)
++static int collie_bat_suspend(struct ucb1x00_dev *dev)
+ {
+ /* flush all pending status updates */
+ flush_work(&bat_work);
+--
+1.8.1.5
+