From 3c4dcff407f613af1adb0681a7f20da5b562ff50 Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Fri, 8 Mar 2013 11:08:00 +0100 Subject: [PATCH] --- yaml --- r: 361342 b: refs/heads/master c: 34ccd8738e34180af34544d2bdd053e60e44a224 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/w1/masters/w1-gpio.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index f37d755d5155..1bd7dcdbcbce 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 01230551e7c2fb9a1c2519b356d703851049cbe0 +refs/heads/master: 34ccd8738e34180af34544d2bdd053e60e44a224 diff --git a/trunk/drivers/w1/masters/w1-gpio.c b/trunk/drivers/w1/masters/w1-gpio.c index 012817abb12f..46d97014342e 100644 --- a/trunk/drivers/w1/masters/w1-gpio.c +++ b/trunk/drivers/w1/masters/w1-gpio.c @@ -47,11 +47,13 @@ static u8 w1_gpio_read_bit(void *data) return gpio_get_value(pdata->pin) ? 1 : 0; } +#if defined(CONFIG_OF) static struct of_device_id w1_gpio_dt_ids[] = { { .compatible = "w1-gpio" }, {} }; MODULE_DEVICE_TABLE(of, w1_gpio_dt_ids); +#endif static int w1_gpio_probe_dt(struct platform_device *pdev) {