| OLD | NEW |
| 1 /* | 1 /* |
| 2 * tegra_das.c - Tegra DAS driver | 2 * tegra_das.c - Tegra DAS driver |
| 3 * | 3 * |
| 4 * Author: Stephen Warren <swarren@nvidia.com> | 4 * Author: Stephen Warren <swarren@nvidia.com> |
| 5 * Copyright (C) 2010 - NVIDIA, Inc. | 5 * Copyright (C) 2010 - NVIDIA, Inc. |
| 6 * | 6 * |
| 7 * This program is free software; you can redistribute it and/or | 7 * This program is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU General Public License | 8 * modify it under the terms of the GNU General Public License |
| 9 * version 2 as published by the Free Software Foundation. | 9 * version 2 as published by the Free Software Foundation. |
| 10 * | 10 * |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 | 137 |
| 138 static const struct file_operations tegra_das_debug_fops = { | 138 static const struct file_operations tegra_das_debug_fops = { |
| 139 .open = tegra_das_debug_open, | 139 .open = tegra_das_debug_open, |
| 140 .read = seq_read, | 140 .read = seq_read, |
| 141 .llseek = seq_lseek, | 141 .llseek = seq_lseek, |
| 142 .release = single_release, | 142 .release = single_release, |
| 143 }; | 143 }; |
| 144 | 144 |
| 145 static void tegra_das_debug_add(struct tegra_das *das) | 145 static void tegra_das_debug_add(struct tegra_das *das) |
| 146 { | 146 { |
| 147 » das->debug = debugfs_create_file(DRV_NAME, S_IRUGO, asoc_debugfs_root, | 147 » das->debug = debugfs_create_file(DRV_NAME, S_IRUGO, |
| 148 » » » » » » das, &tegra_das_debug_fops); | 148 » » » » » snd_soc_debugfs_root, das, |
| 149 » » » » » &tegra_das_debug_fops); |
| 149 } | 150 } |
| 150 | 151 |
| 151 static void tegra_das_debug_remove(struct tegra_das *das) | 152 static void tegra_das_debug_remove(struct tegra_das *das) |
| 152 { | 153 { |
| 153 if (das->debug) | 154 if (das->debug) |
| 154 debugfs_remove(das->debug); | 155 debugfs_remove(das->debug); |
| 155 } | 156 } |
| 156 #else | 157 #else |
| 157 static inline void tegra_das_debug_add(struct tegra_das *das) | 158 static inline void tegra_das_debug_add(struct tegra_das *das) |
| 158 { | 159 { |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 | 255 |
| 255 static void __exit tegra_das_modexit(void) | 256 static void __exit tegra_das_modexit(void) |
| 256 { | 257 { |
| 257 platform_driver_unregister(&tegra_das_driver); | 258 platform_driver_unregister(&tegra_das_driver); |
| 258 } | 259 } |
| 259 module_exit(tegra_das_modexit); | 260 module_exit(tegra_das_modexit); |
| 260 | 261 |
| 261 MODULE_AUTHOR("Stephen Warren <swarren@nvidia.com>"); | 262 MODULE_AUTHOR("Stephen Warren <swarren@nvidia.com>"); |
| 262 MODULE_DESCRIPTION("Tegra DAS driver"); | 263 MODULE_DESCRIPTION("Tegra DAS driver"); |
| 263 MODULE_LICENSE("GPL"); | 264 MODULE_LICENSE("GPL"); |
| 265 MODULE_ALIAS("platform:" DRV_NAME); |
| OLD | NEW |