瀏覽代碼

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

Signed-off-by: Andrew McDonnell <[email protected]>

SVN-Revision: 45739
John Crispin 10 年之前
父節點
當前提交
61c23c2eaa
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      package/kernel/w1-gpio-custom/src/w1-gpio-custom.c

+ 1 - 0
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)