X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=drivers%2Fstaging%2Fimx-drm%2Fimx-ldb.c;h=fd87cda0ce484f3ec6e299de1b65f83c768ce0e0;hb=3ef12ebed9e11332fcb9971b314bf1ee0c58e005;hp=af733ea485656877e86cc9ae760846fa81deb3d0;hpb=7b77d161ce7e480a660692cab079712fc0268ba2;p=karo-tx-linux.git diff --git a/drivers/staging/imx-drm/imx-ldb.c b/drivers/staging/imx-drm/imx-ldb.c index af733ea48565..fd87cda0ce48 100644 --- a/drivers/staging/imx-drm/imx-ldb.c +++ b/drivers/staging/imx-drm/imx-ldb.c @@ -421,7 +421,7 @@ static const char *imx_ldb_bit_mappings[] = { [LVDS_BIT_MAP_JEIDA] = "jeida", }; -const int of_get_data_mapping(struct device_node *np) +static const int of_get_data_mapping(struct device_node *np) { const char *bm; int ret, i; @@ -466,8 +466,7 @@ static int imx_ldb_probe(struct platform_device *pdev) { struct device_node *np = pdev->dev.of_node; const struct of_device_id *of_id = - of_match_device(of_match_ptr(imx_ldb_dt_ids), - &pdev->dev); + of_match_device(imx_ldb_dt_ids, &pdev->dev); struct device_node *child; const u8 *edidp; struct imx_ldb *imx_ldb; @@ -541,7 +540,7 @@ static int imx_ldb_probe(struct platform_device *pdev) channel->edid = kmemdup(edidp, channel->edid_len, GFP_KERNEL); } else { - ret = of_get_drm_display_mode(child, &channel->mode, 0); + ret = of_get_drm_display_mode(child, &channel->mode, -1); if (!ret) channel->mode_valid = 1; }