]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] s5p-mfc: Remove special clock rate management
authorMarek Szyprowski <m.szyprowski@samsung.com>
Wed, 16 Nov 2016 09:04:52 +0000 (07:04 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 30 Nov 2016 11:16:54 +0000 (09:16 -0200)
The maximum rate of special clock depends on SoC variant and should
be set in device tree via assigned-clock-rates property, so remove
the code which forces special clock to 200MHz.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/s5p-mfc/s5p_mfc_pm.c

index b5806ab7ac3180a1a6b2c0c8e1ed853e89e6cf32..818c04646061823dcaaabe141ebb46a8cc97c121 100644 (file)
@@ -20,7 +20,6 @@
 
 #define MFC_GATE_CLK_NAME      "mfc"
 #define MFC_SCLK_NAME          "sclk_mfc"
-#define MFC_SCLK_RATE          (200 * 1000000)
 
 #define CLK_DEBUG
 
@@ -57,7 +56,6 @@ int s5p_mfc_init_pm(struct s5p_mfc_dev *dev)
                        mfc_info("Failed to get MFC special clock control\n");
                        pm->clock = NULL;
                } else {
-                       clk_set_rate(pm->clock, MFC_SCLK_RATE);
                        ret = clk_prepare_enable(pm->clock);
                        if (ret) {
                                mfc_err("Failed to enable MFC special clock\n");