mfd: axp20x: Use dev->driver->of_match_table in axp20x_match_device()
[deliverable/linux.git] / drivers / mfd / axp20x.c
index 685a78614f838e68f135bf78bde062248de3662b..3e186f2dcac3eb3032109ad772028b428b8893e3 100644 (file)
@@ -613,7 +613,7 @@ static int axp20x_match_device(struct axp20x_dev *axp20x)
        const struct of_device_id *of_id;
 
        if (dev->of_node) {
-               of_id = of_match_device(axp20x_of_match, dev);
+               of_id = of_match_device(dev->driver->of_match_table, dev);
                if (!of_id) {
                        dev_err(dev, "Unable to match OF ID\n");
                        return -ENODEV;
This page took 0.026157 seconds and 5 git commands to generate.