diff options
author | John Crispin <blogic@openwrt.org> | 2015-05-23 15:29:20 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2015-05-23 15:29:20 +0000 |
commit | b67a559925f9193538c6b48b2c91bd945565bb51 (patch) | |
tree | e526701575978aa64f295c9356970906a0a2607e /package/kernel/w1-gpio-custom | |
parent | b531ed50093d6cef0ebb6dde2737239cd0465a00 (diff) | |
download | upstream-b67a559925f9193538c6b48b2c91bd945565bb51.tar.gz upstream-b67a559925f9193538c6b48b2c91bd945565bb51.tar.bz2 upstream-b67a559925f9193538c6b48b2c91bd945565bb51.zip |
w1-gpio-custom: Fix uninitialised variable causing 1-wire to not bind to GPIO
Signed-off-by: Andrew McDonnell <bugs@andrewmcdonnell.net>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45739 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel/w1-gpio-custom')
-rw-r--r-- | package/kernel/w1-gpio-custom/src/w1-gpio-custom.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 fc2f842208..004c9240ba 100644 --- 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) |