提交 d44f42e6 编写于 作者: K Kevin Hilman 提交者: Paul Walmsley

ARM: OMAP2+: CLEANUP: Remove ARCH_OMAPx ifdef from struct dpll_data

There are certain fields inside 'struct dpll_data' which are
included under ARCH_OMAP3 and ARCH_OMAP4 option, which makes it
difficult to use it for new devices like, am33xx, ti81xx, etc...

So remove the ifdef completely, this will add few fields to the struct
unused, but it improves readability and maintainability of the code.
Signed-off-by: NKevin Hilman <khilman@ti.com>
[hvaibhav@ti.com: wrote detailed changelog]
Signed-off-by: NVaibhav Hiremath <hvaibhav@ti.com>
Cc: Tony Lindgren <tony@atomide.com>
Cc: Paul Walmsley <paul@pwsan.com>
Cc: Santosh Shilimkar <santosh.shilimkar@ti.com>
Cc: R Sricharan <r.sricharan@ti.com>
Acked-by: NSantosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: NPaul Walmsley <paul@pwsan.com>
上级 485802a6
...@@ -156,7 +156,6 @@ struct dpll_data { ...@@ -156,7 +156,6 @@ struct dpll_data {
u8 min_divider; u8 min_divider;
u16 max_divider; u16 max_divider;
u8 modes; u8 modes;
#if defined(CONFIG_ARCH_OMAP3) || defined(CONFIG_ARCH_OMAP4)
void __iomem *autoidle_reg; void __iomem *autoidle_reg;
void __iomem *idlest_reg; void __iomem *idlest_reg;
u32 autoidle_mask; u32 autoidle_mask;
...@@ -167,7 +166,6 @@ struct dpll_data { ...@@ -167,7 +166,6 @@ struct dpll_data {
u8 auto_recal_bit; u8 auto_recal_bit;
u8 recal_en_bit; u8 recal_en_bit;
u8 recal_st_bit; u8 recal_st_bit;
# endif
u8 flags; u8 flags;
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册