1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
From 9ea478cbd5473f52ca036cccc00dddad717d7861 Mon Sep 17 00:00:00 2001
From: Dmitry Baryshkov <dbaryshkov@gmail.com>
Date: Wed, 30 Jan 2008 19:27:13 +0300
Subject: [PATCH 36/64] Set id to -1 for wm97xx subdevices
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
---
drivers/input/touchscreen/wm97xx-core.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/input/touchscreen/wm97xx-core.c b/drivers/input/touchscreen/wm97xx-core.c
index 27a0a99..e066acc 100644
--- a/drivers/input/touchscreen/wm97xx-core.c
+++ b/drivers/input/touchscreen/wm97xx-core.c
@@ -592,7 +592,7 @@ static int wm97xx_probe(struct device *dev)
wm->gpio[5] = wm97xx_reg_read(wm, AC97_MISC_AFE);
/* register our battery device */
- wm->battery_dev = platform_device_alloc("wm97xx-battery", 0);
+ wm->battery_dev = platform_device_alloc("wm97xx-battery", -1);
if (!wm->battery_dev)
goto batt_err;
platform_set_drvdata(wm->battery_dev, wm);
@@ -603,7 +603,7 @@ static int wm97xx_probe(struct device *dev)
/* register our extended touch device (for machine specific
* extensions) */
- wm->touch_dev = platform_device_alloc("wm97xx-touch", 0);
+ wm->touch_dev = platform_device_alloc("wm97xx-touch", -1);
if (!wm->touch_dev)
goto touch_err;
platform_set_drvdata(wm->touch_dev, wm);
--
1.5.3.8
|