AngeloGioacchino Del Regno
2520912424
clk: mediatek: clk-mtk: Introduce clk_mtk_pdev_{probe,remove}()
...
Introduce functions clk_mtk_pdev_probe() and clk_mtk_pdev_remove():
these will be useful to commonize the probe and remove handlers for
multimedia (clk-mtxxxx-mm) drivers as these are registered by the
mtk-mmsys driver instead of having their own devicetree compatible.
In order to do this, the main logic of clk_mtk_simple{probe,remove}()
was moved to new static __clk_mtk_simple_{probe,remove}() functions
that take as parameter a pointer to struct device_node because when
registering the clocks from mtk-mmsys we want to pass a pointer to
the clock driver's parent (which is, obviously, mtk-mmsys) struct
device_node instead.
As for the clock driver's platform data: for the devicetree case, we
keep using the standard match_data mechanism, else we retrieve it
from an id_table.
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Chen-Yu Tsai <wenst@chromium.org>
Tested-by: Miles Chen <miles.chen@mediatek.com>
Tested-by: Chen-Yu Tsai <wenst@chromium.org>
Link: https://lore.kernel.org/r/20230306140543.1813621-3-angelogioacchino.delregno@collabora.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2023-03-13 11:50:13 -07:00
..
2022-09-26 11:13:09 +08:00
2023-01-30 16:45:01 -08:00
2023-01-30 16:45:01 -08:00
2023-03-13 11:46:23 -07:00
2023-03-13 11:46:23 -07:00
2023-01-30 16:44:56 -08:00
2023-01-30 16:44:56 -08:00
2023-01-30 16:45:25 -08:00
2022-09-26 11:13:45 +08:00
2023-01-30 16:45:25 -08:00
2023-01-30 16:45:25 -08:00
2023-01-30 16:45:25 -08:00
2022-09-26 11:13:45 +08:00
2023-01-30 16:44:56 -08:00
2022-09-26 11:13:45 +08:00
2023-01-30 16:45:06 -08:00
2022-09-26 11:13:45 +08:00
2022-09-26 11:13:45 +08:00
2022-09-26 11:13:45 +08:00
2022-09-26 11:13:45 +08:00
2023-01-30 16:44:56 -08:00
2022-09-26 11:13:45 +08:00
2022-09-26 11:13:45 +08:00
2023-01-30 16:45:25 -08:00
2022-09-26 11:13:45 +08:00
2022-09-26 11:13:45 +08:00
2022-09-26 11:13:45 +08:00
2022-09-26 11:13:45 +08:00
2022-09-26 11:13:45 +08:00
2022-09-26 11:13:45 +08:00
2023-01-30 16:45:10 -08:00
2022-09-26 11:13:45 +08:00
2022-09-26 11:13:45 +08:00
2022-09-26 11:13:45 +08:00
2022-09-26 11:13:45 +08:00
2022-09-26 11:13:45 +08:00
2023-01-30 16:44:56 -08:00
2022-09-26 11:13:45 +08:00
2022-09-26 11:13:45 +08:00
2023-01-30 16:45:25 -08:00
2023-03-13 11:46:35 -07:00
2023-01-30 16:45:01 -08:00
2022-09-26 11:13:09 +08:00
2023-01-30 16:44:56 -08:00
2023-01-30 16:45:06 -08:00
2023-01-30 16:45:57 -08:00
2022-09-26 11:13:09 +08:00
2022-09-26 11:13:09 +08:00
2022-09-26 11:13:45 +08:00
2023-01-30 16:44:56 -08:00
2022-09-26 11:13:45 +08:00
2022-09-26 11:13:45 +08:00
2023-01-30 16:45:06 -08:00
2023-01-30 16:45:25 -08:00
2023-01-30 16:45:25 -08:00
2023-01-30 16:45:25 -08:00
2023-01-30 16:45:06 -08:00
2023-01-30 16:44:56 -08:00
2023-01-30 16:45:25 -08:00
2023-01-30 16:45:06 -08:00
2023-01-30 16:46:06 -08:00
2023-01-30 16:46:06 -08:00
2023-01-30 16:46:06 -08:00
2023-01-30 16:46:06 -08:00
2022-05-19 16:57:56 -07:00
2023-01-30 16:44:56 -08:00
2023-01-30 16:45:10 -08:00
2023-01-30 16:46:03 -08:00
2023-01-30 16:45:06 -08:00
2023-01-30 16:44:56 -08:00
2023-01-30 16:44:56 -08:00
2023-01-30 16:44:56 -08:00
2023-01-30 16:44:56 -08:00
2023-01-30 16:44:56 -08:00
2023-01-30 16:45:06 -08:00
2023-03-13 11:46:38 -07:00
2023-01-30 16:45:22 -08:00
2023-01-30 16:45:22 -08:00
2023-01-30 16:45:22 -08:00
2023-01-30 16:45:31 -08:00
2023-01-30 16:45:31 -08:00
2023-01-30 16:45:22 -08:00
2023-01-30 16:45:22 -08:00
2023-01-30 16:45:25 -08:00
2022-09-26 11:13:45 +08:00
2022-09-26 11:13:45 +08:00
2022-09-26 11:13:45 +08:00
2022-09-26 11:13:45 +08:00
2022-09-26 11:13:45 +08:00
2022-09-26 11:13:45 +08:00
2022-09-29 12:01:43 +08:00
2023-01-30 16:44:56 -08:00
2022-09-26 11:13:45 +08:00
2022-09-26 11:13:45 +08:00
2023-01-30 16:45:46 -08:00
2023-03-13 11:46:23 -07:00
2022-04-25 16:59:40 -07:00
2022-04-25 16:59:40 -07:00
2022-04-25 16:59:39 -07:00
2022-06-15 17:24:25 -07:00
2022-04-25 16:59:41 -07:00
2023-01-30 16:45:06 -08:00
2022-04-25 16:59:40 -07:00
2022-11-29 14:42:41 +08:00
2023-01-30 16:44:56 -08:00
2023-01-30 16:45:54 -08:00
2022-04-25 16:59:40 -07:00
2022-04-25 16:59:40 -07:00
2022-04-25 16:59:40 -07:00
2023-01-30 16:45:25 -08:00
2022-09-26 11:13:45 +08:00
2022-09-26 11:13:45 +08:00
2022-09-26 11:13:45 +08:00
2022-09-26 11:13:45 +08:00
2022-09-26 11:13:45 +08:00
2022-09-29 12:17:43 +08:00
2023-01-30 16:44:56 -08:00
2022-09-26 11:13:45 +08:00
2022-09-26 11:13:45 +08:00
2022-09-26 11:13:45 +08:00
2022-09-26 11:13:45 +08:00
2023-03-13 11:46:41 -07:00
2023-03-13 11:46:45 -07:00
2022-05-19 16:57:56 -07:00
2022-02-17 12:12:25 -08:00
2022-02-17 12:12:25 -08:00
2022-02-17 12:12:25 -08:00
2022-02-17 12:12:25 -08:00
2022-08-31 18:16:45 -07:00
2022-02-17 12:12:25 -08:00
2022-09-29 12:06:34 +08:00
2022-02-17 12:12:25 -08:00
2022-02-17 12:12:25 -08:00
2023-01-30 16:45:10 -08:00
2022-02-17 12:12:25 -08:00
2023-01-30 16:44:56 -08:00
2023-01-30 16:44:56 -08:00
2022-02-17 12:12:25 -08:00
2023-01-31 13:23:04 -08:00
2023-01-31 13:23:04 -08:00
2022-02-17 12:12:25 -08:00
2022-09-30 15:08:16 -07:00
2022-09-30 15:08:16 -07:00
2022-09-30 15:08:16 -07:00
2023-01-30 16:44:56 -08:00
2022-09-30 15:08:16 -07:00
2022-09-30 15:08:16 -07:00
2023-01-30 16:45:10 -08:00
2023-01-30 16:44:56 -08:00
2023-01-30 16:45:06 -08:00
2023-03-13 11:50:13 -07:00
2023-03-13 11:50:13 -07:00
2023-01-30 16:45:10 -08:00
2023-01-30 16:45:10 -08:00
2022-11-29 14:43:07 +08:00
2022-11-29 14:43:07 +08:00
2023-03-13 11:46:29 -07:00
2023-03-13 11:46:23 -07:00
2023-01-30 16:46:06 -08:00
2023-01-30 16:46:06 -08:00
2022-09-26 11:13:09 +08:00
2022-06-15 17:24:13 -07:00