mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 10:04:04 +02:00
irqchip/imx-mu-msi: Fix section mismatch
Platform drivers can be probed after their init sections have been
discarded so the irqchip init callbacks must not live in init.
Fixes: 70afdab904 ("irqchip: Add IMX MU MSI controller driver")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
parent
bbe1775924
commit
64acfd8e68
|
|
@ -296,9 +296,8 @@ static const struct imx_mu_dcfg imx_mu_cfg_imx8ulp = {
|
|||
},
|
||||
};
|
||||
|
||||
static int __init imx_mu_of_init(struct device_node *dn,
|
||||
struct device_node *parent,
|
||||
const struct imx_mu_dcfg *cfg)
|
||||
static int imx_mu_of_init(struct device_node *dn, struct device_node *parent,
|
||||
const struct imx_mu_dcfg *cfg)
|
||||
{
|
||||
struct platform_device *pdev = of_find_device_by_node(dn);
|
||||
struct device_link *pd_link_a;
|
||||
|
|
@ -416,20 +415,17 @@ static const struct dev_pm_ops imx_mu_pm_ops = {
|
|||
imx_mu_runtime_resume, NULL)
|
||||
};
|
||||
|
||||
static int __init imx_mu_imx7ulp_of_init(struct device_node *dn,
|
||||
struct device_node *parent)
|
||||
static int imx_mu_imx7ulp_of_init(struct device_node *dn, struct device_node *parent)
|
||||
{
|
||||
return imx_mu_of_init(dn, parent, &imx_mu_cfg_imx7ulp);
|
||||
}
|
||||
|
||||
static int __init imx_mu_imx6sx_of_init(struct device_node *dn,
|
||||
struct device_node *parent)
|
||||
static int imx_mu_imx6sx_of_init(struct device_node *dn, struct device_node *parent)
|
||||
{
|
||||
return imx_mu_of_init(dn, parent, &imx_mu_cfg_imx6sx);
|
||||
}
|
||||
|
||||
static int __init imx_mu_imx8ulp_of_init(struct device_node *dn,
|
||||
struct device_node *parent)
|
||||
static int imx_mu_imx8ulp_of_init(struct device_node *dn, struct device_node *parent)
|
||||
{
|
||||
return imx_mu_of_init(dn, parent, &imx_mu_cfg_imx8ulp);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user