|
@@ -564,7 +564,7 @@ static int mcp23s08_probe_one(struct mcp23s08 *mcp, struct device *dev,
|
|
mcp->chip.direction_output = mcp23s08_direction_output;
|
|
mcp->chip.direction_output = mcp23s08_direction_output;
|
|
mcp->chip.set = mcp23s08_set;
|
|
mcp->chip.set = mcp23s08_set;
|
|
mcp->chip.dbg_show = mcp23s08_dbg_show;
|
|
mcp->chip.dbg_show = mcp23s08_dbg_show;
|
|
-#ifdef CONFIG_OF
|
|
|
|
|
|
+#ifdef CONFIG_OF_GPIO
|
|
mcp->chip.of_gpio_n_cells = 2;
|
|
mcp->chip.of_gpio_n_cells = 2;
|
|
mcp->chip.of_node = dev->of_node;
|
|
mcp->chip.of_node = dev->of_node;
|
|
#endif
|
|
#endif
|