The owner of the struct pinctrl_desc matches that of platform_driver.
Set it in the common probe function.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
desc->pctlops = &uniphier_pctlops;
desc->pmxops = &uniphier_pmxops;
desc->confops = &uniphier_confops;
+ desc->owner = dev->driver->owner;
priv->pctldev = devm_pinctrl_register(dev, desc, priv);
if (IS_ERR(priv->pctldev)) {
.name = DRIVER_NAME,
.pins = uniphier_ld4_pins,
.npins = ARRAY_SIZE(uniphier_ld4_pins),
- .owner = THIS_MODULE,
};
static int uniphier_ld4_pinctrl_probe(struct platform_device *pdev)
.name = DRIVER_NAME,
.pins = uniphier_ld6b_pins,
.npins = ARRAY_SIZE(uniphier_ld6b_pins),
- .owner = THIS_MODULE,
};
static int uniphier_ld6b_pinctrl_probe(struct platform_device *pdev)
.name = DRIVER_NAME,
.pins = uniphier_pro4_pins,
.npins = ARRAY_SIZE(uniphier_pro4_pins),
- .owner = THIS_MODULE,
};
static int uniphier_pro4_pinctrl_probe(struct platform_device *pdev)
.name = DRIVER_NAME,
.pins = uniphier_pro5_pins,
.npins = ARRAY_SIZE(uniphier_pro5_pins),
- .owner = THIS_MODULE,
};
static int uniphier_pro5_pinctrl_probe(struct platform_device *pdev)
.name = DRIVER_NAME,
.pins = uniphier_pxs2_pins,
.npins = ARRAY_SIZE(uniphier_pxs2_pins),
- .owner = THIS_MODULE,
};
static int uniphier_pxs2_pinctrl_probe(struct platform_device *pdev)
.name = DRIVER_NAME,
.pins = uniphier_sld8_pins,
.npins = ARRAY_SIZE(uniphier_sld8_pins),
- .owner = THIS_MODULE,
};
static int uniphier_sld8_pinctrl_probe(struct platform_device *pdev)