Skip to content

Commit

Permalink
media: mtk-mdp: remove mtk_mdp_comp.regs from mtk_mdp_comp.h
Browse files Browse the repository at this point in the history
These fields are not used and can be removed.

Signed-off-by: Eizan Miyamoto <eizan@chromium.org>
Reviewed-by: Enric Balletbo I Serra <enric.balletbo@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
  • Loading branch information
Eizan Miyamoto authored and Mauro Carvalho Chehab committed Jul 4, 2020
1 parent 0d1e342 commit 86ef514
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion drivers/media/platform/mtk-mdp/mtk_mdp_comp.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ int mtk_mdp_comp_init(struct device *dev, struct device_node *node,
comp->dev_node = of_node_get(node);
comp->id = comp_id;
comp->type = mtk_mdp_matches[comp_id].type;
comp->regs = of_iomap(node, 0);

for (i = 0; i < ARRAY_SIZE(comp->clk); i++) {
comp->clk[i] = of_clk_get(node, i);
Expand Down
2 changes: 0 additions & 2 deletions drivers/media/platform/mtk-mdp/mtk_mdp_comp.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,13 @@ enum mtk_mdp_comp_id {
* struct mtk_mdp_comp - the MDP's function component data
* @dev_node: component device node
* @clk: clocks required for component
* @regs: Mapped address of component registers.
* @larb_dev: SMI device required for component
* @type: component type
* @id: component ID
*/
struct mtk_mdp_comp {
struct device_node *dev_node;
struct clk *clk[2];
void __iomem *regs;
struct device *larb_dev;
enum mtk_mdp_comp_type type;
enum mtk_mdp_comp_id id;
Expand Down

0 comments on commit 86ef514

Please sign in to comment.