Skip to content
Snippets Groups Projects
Commit 61c23c2e authored by John Crispin's avatar John Crispin
Browse files

w1-gpio-custom: Fix uninitialised variable causing 1-wire to not bind to GPIO


Signed-off-by: default avatarAndrew McDonnell <bugs@andrewmcdonnell.net>

SVN-Revision: 45739
parent 803ebd27
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment