projects
/
openwrt
/
staging
/
adrian.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
803ebd2
)
w1-gpio-custom: Fix uninitialised variable causing 1-wire to not bind to GPIO
author
John Crispin
<john@openwrt.org>
Sat, 23 May 2015 15:29:20 +0000
(15:29 +0000)
committer
John Crispin
<john@openwrt.org>
Sat, 23 May 2015 15:29:20 +0000
(15:29 +0000)
Signed-off-by: Andrew McDonnell <bugs@andrewmcdonnell.net>
SVN-Revision: 45739
package/kernel/w1-gpio-custom/src/w1-gpio-custom.c
patch
|
blob
|
history
diff --git
a/package/kernel/w1-gpio-custom/src/w1-gpio-custom.c
b/package/kernel/w1-gpio-custom/src/w1-gpio-custom.c
index fc2f842208cb1c09820e3aad07c7ec2414b54488..004c9240ba81a67dd42876e88f3072d3f8297499 100644
(file)
--- a/
package/kernel/w1-gpio-custom/src/w1-gpio-custom.c
+++ b/
package/kernel/w1-gpio-custom/src/w1-gpio-custom.c
@@
-113,6
+113,7
@@
static int __init w1_gpio_custom_add_one(unsigned int id, unsigned int *params)
pdata.pin = params[BUS_PARAM_PIN];
pdata.is_open_drain = params[BUS_PARAM_OD] ? 1 : 0;
pdata.enable_external_pullup = NULL;
+ pdata.ext_pullup_enable_pin = -EINVAL;
err = platform_device_add_data(pdev, &pdata, sizeof(pdata));
if (err)