ASoC: spacemit: Fix declaration error
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 26 Dec 2024 09:25:12 +0000 (18:25 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Tue, 29 Apr 2025 03:38:21 +0000 (12:38 +0900)
commit41ae5045e1f3c4eb39eaa59aab200d8d13dd0cd3
tree0ad36f28b7ba53a810a523f766439a0fa7912f33
parent7fad223f2a8f5fb6ac78dcce34e29a74f6cf8390
ASoC: spacemit: Fix declaration error

Some compilers give an error, "a label can only be part of a
statement and a declaration is not a statement" for declaration
in middle of statement. Fix the error by moving declaration to
function top.

Change-Id: I7635abf585e49582584b3e379326b8d1fa2f8a92
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
sound/soc/spacemit/spacemit-snd-i2s.c