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
master
John Crispin 2015-05-23 15:29:20 +00:00
parent b531ed5009
commit b67a559925
1 changed files with 1 additions and 0 deletions

View File

@ -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)