mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 16:29:59 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue