diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2015-03-31 10:48:56 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-04-01 04:31:19 -0400 |
commit | 3b6281cf2893a3c140a37be817b0802c46af292b (patch) | |
tree | b5d62051706668e83e9b12e553c2964d5e498560 | |
parent | 1c6ae56c5d26d22e8ba9ea6d3a0afc8b22b4e207 (diff) |
ASoC: fsi: reorder code to make a forward declaration superfluous
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/sh/fsi.c | 69 |
1 files changed, 34 insertions, 35 deletions
diff --git a/sound/soc/sh/fsi.c b/sound/soc/sh/fsi.c index 936c02d4e385..5d26f8c98650 100644 --- a/sound/soc/sh/fsi.c +++ b/sound/soc/sh/fsi.c | |||
@@ -1876,7 +1876,40 @@ static void fsi_handler_init(struct fsi_priv *fsi, | |||
1876 | } | 1876 | } |
1877 | } | 1877 | } |
1878 | 1878 | ||
1879 | static const struct of_device_id fsi_of_match[]; | 1879 | static struct fsi_core fsi1_core = { |
1880 | .ver = 1, | ||
1881 | |||
1882 | /* Interrupt */ | ||
1883 | .int_st = INT_ST, | ||
1884 | .iemsk = IEMSK, | ||
1885 | .imsk = IMSK, | ||
1886 | }; | ||
1887 | |||
1888 | static struct fsi_core fsi2_core = { | ||
1889 | .ver = 2, | ||
1890 | |||
1891 | /* Interrupt */ | ||
1892 | .int_st = CPU_INT_ST, | ||
1893 | .iemsk = CPU_IEMSK, | ||
1894 | .imsk = CPU_IMSK, | ||
1895 | .a_mclk = A_MST_CTLR, | ||
1896 | .b_mclk = B_MST_CTLR, | ||
1897 | }; | ||
1898 | |||
1899 | static const struct of_device_id fsi_of_match[] = { | ||
1900 | { .compatible = "renesas,sh_fsi", .data = &fsi1_core}, | ||
1901 | { .compatible = "renesas,sh_fsi2", .data = &fsi2_core}, | ||
1902 | {}, | ||
1903 | }; | ||
1904 | MODULE_DEVICE_TABLE(of, fsi_of_match); | ||
1905 | |||
1906 | static struct platform_device_id fsi_id_table[] = { | ||
1907 | { "sh_fsi", (kernel_ulong_t)&fsi1_core }, | ||
1908 | { "sh_fsi2", (kernel_ulong_t)&fsi2_core }, | ||
1909 | {}, | ||
1910 | }; | ||
1911 | MODULE_DEVICE_TABLE(platform, fsi_id_table); | ||
1912 | |||
1880 | static int fsi_probe(struct platform_device *pdev) | 1913 | static int fsi_probe(struct platform_device *pdev) |
1881 | { | 1914 | { |
1882 | struct fsi_master *master; | 1915 | struct fsi_master *master; |
@@ -2072,40 +2105,6 @@ static struct dev_pm_ops fsi_pm_ops = { | |||
2072 | .resume = fsi_resume, | 2105 | .resume = fsi_resume, |
2073 | }; | 2106 | }; |
2074 | 2107 | ||
2075 | static struct fsi_core fsi1_core = { | ||
2076 | .ver = 1, | ||
2077 | |||
2078 | /* Interrupt */ | ||
2079 | .int_st = INT_ST, | ||
2080 | .iemsk = IEMSK, | ||
2081 | .imsk = IMSK, | ||
2082 | }; | ||
2083 | |||
2084 | static struct fsi_core fsi2_core = { | ||
2085 | .ver = 2, | ||
2086 | |||
2087 | /* Interrupt */ | ||
2088 | .int_st = CPU_INT_ST, | ||
2089 | .iemsk = CPU_IEMSK, | ||
2090 | .imsk = CPU_IMSK, | ||
2091 | .a_mclk = A_MST_CTLR, | ||
2092 | .b_mclk = B_MST_CTLR, | ||
2093 | }; | ||
2094 | |||
2095 | static const struct of_device_id fsi_of_match[] = { | ||
2096 | { .compatible = "renesas,sh_fsi", .data = &fsi1_core}, | ||
2097 | { .compatible = "renesas,sh_fsi2", .data = &fsi2_core}, | ||
2098 | {}, | ||
2099 | }; | ||
2100 | MODULE_DEVICE_TABLE(of, fsi_of_match); | ||
2101 | |||
2102 | static struct platform_device_id fsi_id_table[] = { | ||
2103 | { "sh_fsi", (kernel_ulong_t)&fsi1_core }, | ||
2104 | { "sh_fsi2", (kernel_ulong_t)&fsi2_core }, | ||
2105 | {}, | ||
2106 | }; | ||
2107 | MODULE_DEVICE_TABLE(platform, fsi_id_table); | ||
2108 | |||
2109 | static struct platform_driver fsi_driver = { | 2108 | static struct platform_driver fsi_driver = { |
2110 | .driver = { | 2109 | .driver = { |
2111 | .name = "fsi-pcm-audio", | 2110 | .name = "fsi-pcm-audio", |