|
@@ -47,11 +47,13 @@ static u8 w1_gpio_read_bit(void *data)
|
|
return gpio_get_value(pdata->pin) ? 1 : 0;
|
|
return gpio_get_value(pdata->pin) ? 1 : 0;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+#if defined(CONFIG_OF)
|
|
static struct of_device_id w1_gpio_dt_ids[] = {
|
|
static struct of_device_id w1_gpio_dt_ids[] = {
|
|
{ .compatible = "w1-gpio" },
|
|
{ .compatible = "w1-gpio" },
|
|
{}
|
|
{}
|
|
};
|
|
};
|
|
MODULE_DEVICE_TABLE(of, w1_gpio_dt_ids);
|
|
MODULE_DEVICE_TABLE(of, w1_gpio_dt_ids);
|
|
|
|
+#endif
|
|
|
|
|
|
static int w1_gpio_probe_dt(struct platform_device *pdev)
|
|
static int w1_gpio_probe_dt(struct platform_device *pdev)
|
|
{
|
|
{
|