[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87a8gwhunk.wl%kuninori.morimoto.gx@renesas.com>
Date: Tue, 2 Aug 2016 00:46:26 +0000
From: Kuninori Morimoto <kuninori.morimoto.gx@...esas.com>
To: Russell King - ARM Linux <linux@...linux.org.uk>
CC: Mark Brown <broonie@...nel.org>, David Airlie <airlied@...ux.ie>,
Fabio Estevam <fabio.estevam@...escale.com>,
Daniel Vetter <daniel.vetter@...ll.ch>,
Koji Matsuoka <koji.matsuoka.xm@...esas.com>,
Thierry Reding <treding@...dia.com>,
Linux-ALSA <alsa-devel@...a-project.org>,
Liam Girdwood <lgirdwood@...il.com>,
Simon <horms@...ge.net.au>, <linux-renesas-soc@...r.kernel.org>,
<dri-devel@...ts.freedesktop.org>, <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 1/3] drm: bridge: add DesignWare HDMI I2S audio support
Hi Russell
> > +static int snd_dw_hdmi_probe(struct platform_device *pdev)
> > +{
> > + struct dw_hdmi_i2s_audio_data *audio = pdev->dev.platform_data;
> > + struct platform_device_info pdevinfo;
> > + struct hdmi_codec_pdata pdata;
> > +
> > + pdata.ops = &dw_hdmi_i2s_ops;
> > + pdata.i2s = 1;
> > + pdata.max_i2s_channels = 6;
> > + pdata.data = audio;
> > +
> > + memset(&pdevinfo, 0, sizeof(pdevinfo));
> > + pdevinfo.parent = pdev->dev.parent;
> > + pdevinfo.id = PLATFORM_DEVID_AUTO;
> > + pdevinfo.name = HDMI_CODEC_DRV_NAME;
> > + pdevinfo.data = &pdata;
> > + pdevinfo.size_data = sizeof(pdata);
> > + pdevinfo.dma_mask = DMA_BIT_MASK(32);
> > +
> > + return IS_ERR_OR_NULL(platform_device_register_full(&pdevinfo));
>
> This is certainly wrong. You're returning a 0/1 value rather than
> an error code when platform_device_register_full() fails.
Thanks.
I forgot why I added this ??
I will fix it on v2 patch
Powered by blists - more mailing lists