diff options
author | Tony Lindgren <tony@atomide.com> | 2017-03-14 16:13:19 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2017-03-14 16:13:19 -0400 |
commit | a1e312355d41cd63b9f47081ade9168eedc4574d (patch) | |
tree | 06f8df1cdc60714b958e4edea2b1a1f90388e8aa /arch/arm/mach-omap2/omap_hwmod.h | |
parent | c1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201 (diff) |
ARM: OMAP2+: Remove mostly unused hwmod linkspace
We want to be able to dynamically allocate struct omap_hwmod_ocp_if and
struct omap_hwmod at device driver probe time based on .dts data.
Current setup with the linkspace using memblock_virt_alloc() makes
this tricky, so let's get rid of struct linkspace and directly set up
struct omap_hwmod_ocp_if as the master and slave lists.
As we are currently not using the master_ports either, let's remove it
too. And let's add the struct omap_hwmod_ocp_if node directly to the
slave_ports list.
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/omap_hwmod.h')
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod.h b/arch/arm/mach-omap2/omap_hwmod.h index 78904017f18c..03d5560d0ecd 100644 --- a/arch/arm/mach-omap2/omap_hwmod.h +++ b/arch/arm/mach-omap2/omap_hwmod.h | |||
@@ -313,6 +313,7 @@ struct omap_hwmod_ocp_if { | |||
313 | struct omap_hwmod_addr_space *addr; | 313 | struct omap_hwmod_addr_space *addr; |
314 | const char *clk; | 314 | const char *clk; |
315 | struct clk *_clk; | 315 | struct clk *_clk; |
316 | struct list_head node; | ||
316 | union { | 317 | union { |
317 | struct omap_hwmod_omap2_firewall omap2; | 318 | struct omap_hwmod_omap2_firewall omap2; |
318 | } fw; | 319 | } fw; |
@@ -617,16 +618,6 @@ struct omap_hwmod_class { | |||
617 | }; | 618 | }; |
618 | 619 | ||
619 | /** | 620 | /** |
620 | * struct omap_hwmod_link - internal structure linking hwmods with ocp_ifs | ||
621 | * @ocp_if: OCP interface structure record pointer | ||
622 | * @node: list_head pointing to next struct omap_hwmod_link in a list | ||
623 | */ | ||
624 | struct omap_hwmod_link { | ||
625 | struct omap_hwmod_ocp_if *ocp_if; | ||
626 | struct list_head node; | ||
627 | }; | ||
628 | |||
629 | /** | ||
630 | * struct omap_hwmod - integration data for OMAP hardware "modules" (IP blocks) | 621 | * struct omap_hwmod - integration data for OMAP hardware "modules" (IP blocks) |
631 | * @name: name of the hwmod | 622 | * @name: name of the hwmod |
632 | * @class: struct omap_hwmod_class * to the class of this hwmod | 623 | * @class: struct omap_hwmod_class * to the class of this hwmod |
@@ -688,7 +679,6 @@ struct omap_hwmod { | |||
688 | struct omap_hwmod_opt_clk *opt_clks; | 679 | struct omap_hwmod_opt_clk *opt_clks; |
689 | char *clkdm_name; | 680 | char *clkdm_name; |
690 | struct clockdomain *clkdm; | 681 | struct clockdomain *clkdm; |
691 | struct list_head master_ports; /* connect to *_IA */ | ||
692 | struct list_head slave_ports; /* connect to *_TA */ | 682 | struct list_head slave_ports; /* connect to *_TA */ |
693 | void *dev_attr; | 683 | void *dev_attr; |
694 | u32 _sysc_cache; | 684 | u32 _sysc_cache; |
@@ -703,7 +693,6 @@ struct omap_hwmod { | |||
703 | u8 response_lat; | 693 | u8 response_lat; |
704 | u8 rst_lines_cnt; | 694 | u8 rst_lines_cnt; |
705 | u8 opt_clks_cnt; | 695 | u8 opt_clks_cnt; |
706 | u8 masters_cnt; | ||
707 | u8 slaves_cnt; | 696 | u8 slaves_cnt; |
708 | u8 hwmods_cnt; | 697 | u8 hwmods_cnt; |
709 | u8 _int_flags; | 698 | u8 _int_flags; |