media: marvell-ccic: mmp: don't chicken out w/o pdata
authorLubomir Rintel <lkundrak@v3.sk>
Thu, 20 Jun 2019 14:49:04 +0000 (10:49 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 24 Jun 2019 17:05:51 +0000 (13:05 -0400)
It's impossible for mmpcam_calc_dphy() to be called without it.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/marvell-ccic/mmp-driver.c

index 450693e6657d528d706d2bb0da59f12348a08b3b..10559492e09ed1d2720ded7cdf213ac3ac1c534d 100644 (file)
@@ -105,9 +105,6 @@ static void mmpcam_calc_dphy(struct mcam_camera *mcam)
        struct device *dev = &cam->pdev->dev;
        unsigned long tx_clk_esc;
 
-       if (!pdata)
-               return;
-
        /*
         * If CSI2_DPHY3 is calculated dynamically,
         * pdata->lane_clk should be already set