lkml.org 
[lkml]   [2018]   [Feb]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v2 2/5] clk: mediatek: modify MT7622 audsys to adapt MFD device
From
Date
On Sat, 2018-02-03 at 15:26 +0100, Matthias Brugger wrote:
>
> On 01/31/2018 08:42 AM, Ryder Lee wrote:
> > As the new MFD parent is in place, switch probing method to adapt it.
> >
> > Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
> > ---
> > drivers/clk/mediatek/clk-mt7622-aud.c | 3 ++-
> > 1 file changed, 2 insertions(+), 1 deletion(-)
> >
> > diff --git a/drivers/clk/mediatek/clk-mt7622-aud.c b/drivers/clk/mediatek/clk-mt7622-aud.c
> > index 13f752d..8c18536 100644
> > --- a/drivers/clk/mediatek/clk-mt7622-aud.c
> > +++ b/drivers/clk/mediatek/clk-mt7622-aud.c
> > @@ -142,11 +142,12 @@ static int clk_mt7622_audiosys_init(struct platform_device *pdev)
> > {
> > struct clk_onecell_data *clk_data;
> > struct device_node *node = pdev->dev.of_node;
> > + struct device_node *pnode = pdev->dev.parent->of_node;
> > int r;
> >
> > clk_data = mtk_alloc_clk_data(CLK_AUDIO_NR_CLK);
> >
> > - mtk_clk_register_gates(node, audio_clks, ARRAY_SIZE(audio_clks),
> > + mtk_clk_register_gates(pnode, audio_clks, ARRAY_SIZE(audio_clks),
>
> We will need a fallback here for older device tree bindings.
>
> Regards,
> Matthias

Up to now, I didn't see both driver and bindings are used anywhere.
Should I still care about that?

Thanks.



\
 
 \ /
  Last update: 2018-02-05 05:07    [W:0.088 / U:0.848 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site