diff options
author | Jarkko Nikula <jhnikula@gmail.com> | 2011-07-01 08:52:27 +0000 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2011-07-07 12:06:34 -0700 |
commit | fd1ee39151f397730a2b23d14fb232c098743f4b (patch) | |
tree | 1861b6c8a87dd838758bf88828cd3bc1519f5c3a /arch/arm/plat-omap | |
parent | 9df0fcc4c842703080ee431112d624b1f8f2f1c8 (diff) | |
download | op-kernel-dev-fd1ee39151f397730a2b23d14fb232c098743f4b.zip op-kernel-dev-fd1ee39151f397730a2b23d14fb232c098743f4b.tar.gz |
omap: mcbsp: Remove port number enums
These McBSP port number enums are used only in two places in the McBSP code
so we may remove then and just use numeric values like rest of the code does.
Signed-off-by: Jarkko Nikula <jhnikula@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/plat-omap')
-rw-r--r-- | arch/arm/plat-omap/include/plat/mcbsp.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/arch/arm/plat-omap/include/plat/mcbsp.h b/arch/arm/plat-omap/include/plat/mcbsp.h index 63464ad..9882c65 100644 --- a/arch/arm/plat-omap/include/plat/mcbsp.h +++ b/arch/arm/plat-omap/include/plat/mcbsp.h @@ -33,7 +33,7 @@ #define OMAP_MCBSP_PLATFORM_DEVICE(port_nr) \ static struct platform_device omap_mcbsp##port_nr = { \ .name = "omap-mcbsp-dai", \ - .id = OMAP_MCBSP##port_nr, \ + .id = port_nr - 1, \ } #define MCBSP_CONFIG_TYPE2 0x2 @@ -332,14 +332,6 @@ struct omap_mcbsp_reg_cfg { }; typedef enum { - OMAP_MCBSP1 = 0, - OMAP_MCBSP2, - OMAP_MCBSP3, - OMAP_MCBSP4, - OMAP_MCBSP5 -} omap_mcbsp_id; - -typedef enum { OMAP_MCBSP_WORD_8 = 0, OMAP_MCBSP_WORD_12, OMAP_MCBSP_WORD_16, |