diff options
-rw-r--r-- | sound/soc/fsl/imx-audmux.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/soc/fsl/imx-audmux.c b/sound/soc/fsl/imx-audmux.c index 267717aa96c1..46f9beb6b273 100644 --- a/sound/soc/fsl/imx-audmux.c +++ b/sound/soc/fsl/imx-audmux.c | |||
@@ -67,7 +67,7 @@ static ssize_t audmux_read_file(struct file *file, char __user *user_buf, | |||
67 | { | 67 | { |
68 | ssize_t ret; | 68 | ssize_t ret; |
69 | char *buf; | 69 | char *buf; |
70 | int port = (int)file->private_data; | 70 | uintptr_t port = (uintptr_t)file->private_data; |
71 | u32 pdcr, ptcr; | 71 | u32 pdcr, ptcr; |
72 | 72 | ||
73 | if (audmux_clk) { | 73 | if (audmux_clk) { |
@@ -147,7 +147,7 @@ static const struct file_operations audmux_debugfs_fops = { | |||
147 | 147 | ||
148 | static void audmux_debugfs_init(void) | 148 | static void audmux_debugfs_init(void) |
149 | { | 149 | { |
150 | int i; | 150 | uintptr_t i; |
151 | char buf[20]; | 151 | char buf[20]; |
152 | 152 | ||
153 | audmux_debugfs_root = debugfs_create_dir("audmux", NULL); | 153 | audmux_debugfs_root = debugfs_create_dir("audmux", NULL); |
@@ -157,10 +157,10 @@ static void audmux_debugfs_init(void) | |||
157 | } | 157 | } |
158 | 158 | ||
159 | for (i = 0; i < MX31_AUDMUX_PORT7_SSI_PINS_7 + 1; i++) { | 159 | for (i = 0; i < MX31_AUDMUX_PORT7_SSI_PINS_7 + 1; i++) { |
160 | snprintf(buf, sizeof(buf), "ssi%d", i); | 160 | snprintf(buf, sizeof(buf), "ssi%lu", i); |
161 | if (!debugfs_create_file(buf, 0444, audmux_debugfs_root, | 161 | if (!debugfs_create_file(buf, 0444, audmux_debugfs_root, |
162 | (void *)i, &audmux_debugfs_fops)) | 162 | (void *)i, &audmux_debugfs_fops)) |
163 | pr_warning("Failed to create AUDMUX port %d debugfs file\n", | 163 | pr_warning("Failed to create AUDMUX port %lu debugfs file\n", |
164 | i); | 164 | i); |
165 | } | 165 | } |
166 | } | 166 | } |