forked from Minki/linux
media: imx-media-internal-sd: Use empty initializer
When building with W=1 the following warning shows up: drivers/staging/media/imx/imx-media-internal-sd.c:274:49: warning: Using plain integer as NULL pointer Fix this problem by using an empty initializer, which guarantees that all struct members are zero-cleared. Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com> Acked-by: Steve Longerbeam <steve_longerbeam@mentor.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
aebd90aa32
commit
f31c76a948
@ -271,7 +271,7 @@ static int add_internal_subdev(struct imx_media_dev *imxmd,
|
||||
int ipu_id)
|
||||
{
|
||||
struct imx_media_internal_sd_platformdata pdata;
|
||||
struct platform_device_info pdevinfo = {0};
|
||||
struct platform_device_info pdevinfo = {};
|
||||
struct platform_device *pdev;
|
||||
|
||||
pdata.grp_id = isd->id->grp_id;
|
||||
|
Loading…
Reference in New Issue
Block a user