Message ID | 20190318140352.31979-1-axel.lin@ingics.com (mailing list archive) |
---|---|
State | Mainlined, archived |
Commit | 13e8a05b922457761ddef39cfff6231bd4ed9eef |
Headers | show |
Series | reset: meson-audio-arb: Fix missing .owner setting of reset_controller_dev | expand |
On Mon, 2019-03-18 at 22:03 +0800, Axel Lin wrote: > Set .owner to prevent module unloading while being used. > > Signed-off-by: Axel Lin <axel.lin@ingics.com> > --- > drivers/reset/reset-meson-audio-arb.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/reset/reset-meson-audio-arb.c b/drivers/reset/reset-meson-audio-arb.c > index 91751617b37a..c53a2185a039 100644 > --- a/drivers/reset/reset-meson-audio-arb.c > +++ b/drivers/reset/reset-meson-audio-arb.c > @@ -130,6 +130,7 @@ static int meson_audio_arb_probe(struct platform_device *pdev) > arb->rstc.nr_resets = ARRAY_SIZE(axg_audio_arb_reset_bits); > arb->rstc.ops = &meson_audio_arb_rstc_ops; > arb->rstc.of_node = dev->of_node; > + arb->rstc.owner = THIS_MODULE; > > /* > * Enable general : Thank you, applied to reset/fixes. regards Philipp
diff --git a/drivers/reset/reset-meson-audio-arb.c b/drivers/reset/reset-meson-audio-arb.c index 91751617b37a..c53a2185a039 100644 --- a/drivers/reset/reset-meson-audio-arb.c +++ b/drivers/reset/reset-meson-audio-arb.c @@ -130,6 +130,7 @@ static int meson_audio_arb_probe(struct platform_device *pdev) arb->rstc.nr_resets = ARRAY_SIZE(axg_audio_arb_reset_bits); arb->rstc.ops = &meson_audio_arb_rstc_ops; arb->rstc.of_node = dev->of_node; + arb->rstc.owner = THIS_MODULE; /* * Enable general :
Set .owner to prevent module unloading while being used. Signed-off-by: Axel Lin <axel.lin@ingics.com> --- drivers/reset/reset-meson-audio-arb.c | 1 + 1 file changed, 1 insertion(+)