diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-25 10:51:49 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-25 10:51:49 -0400 |
| commit | 1dfd166e93f98892aa4427069a23ed73259983c8 (patch) | |
| tree | c70a347b963091b99bd16842537153fa36e5c0e9 /arch/sh/mm/cache-debugfs.c | |
| parent | 8e775167d54e6521e7cdbc03ee7ec42a8c67b49a (diff) | |
| parent | 8df399018df120d28f89fda6f2515cc6e096e43d (diff) | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6: (110 commits)
sh: i2c-sh7760: Replase from ctrl_* to __raw_*
sh: clkfwk: Shuffle around to match the intc split up.
sh: clkfwk: modify for_each_frequency end condition
sh: fix clk_get() error handling
sh: clkfwk: Fix fault in frequency iterator.
sh: clkfwk: Add a helper for rate rounding by divisor ranges.
sh: clkfwk: Abstract rate rounding helper.
sh: clkfwk: support clock remapping.
sh: pci: Convert to upper/lower_32_bits() helpers.
sh: mach-sdk7786: Add support for the FPGA SRAM.
sh: Provide a generic SRAM pool for tiny memories.
sh: pci: Support secondary FPGA-driven PCIe clocks on SDK7786.
sh: pci: Support slot 4 routing on SDK7786.
sh: Fix up PMB locking.
sh: mach-sdk7786: Add support for fpga gpios.
sh: use pr_fmt for clock framework, too.
sh: remove name and id from struct clk
sh: free-without-alloc fix for sh_mobile_lcdcfb
sh: perf: Set up perf_max_events.
sh: perf: Support SH-X3 hardware counters.
...
Fix up trivial conflicts (perf_max_events got removed) in arch/sh/kernel/perf_event.c
Diffstat (limited to 'arch/sh/mm/cache-debugfs.c')
| -rw-r--r-- | arch/sh/mm/cache-debugfs.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/arch/sh/mm/cache-debugfs.c b/arch/sh/mm/cache-debugfs.c index 690ed010d002..52411462c409 100644 --- a/arch/sh/mm/cache-debugfs.c +++ b/arch/sh/mm/cache-debugfs.c | |||
| @@ -126,25 +126,19 @@ static int __init cache_debugfs_init(void) | |||
| 126 | { | 126 | { |
| 127 | struct dentry *dcache_dentry, *icache_dentry; | 127 | struct dentry *dcache_dentry, *icache_dentry; |
| 128 | 128 | ||
| 129 | dcache_dentry = debugfs_create_file("dcache", S_IRUSR, sh_debugfs_root, | 129 | dcache_dentry = debugfs_create_file("dcache", S_IRUSR, arch_debugfs_dir, |
| 130 | (unsigned int *)CACHE_TYPE_DCACHE, | 130 | (unsigned int *)CACHE_TYPE_DCACHE, |
| 131 | &cache_debugfs_fops); | 131 | &cache_debugfs_fops); |
| 132 | if (!dcache_dentry) | 132 | if (!dcache_dentry) |
| 133 | return -ENOMEM; | 133 | return -ENOMEM; |
| 134 | if (IS_ERR(dcache_dentry)) | ||
| 135 | return PTR_ERR(dcache_dentry); | ||
| 136 | 134 | ||
| 137 | icache_dentry = debugfs_create_file("icache", S_IRUSR, sh_debugfs_root, | 135 | icache_dentry = debugfs_create_file("icache", S_IRUSR, arch_debugfs_dir, |
| 138 | (unsigned int *)CACHE_TYPE_ICACHE, | 136 | (unsigned int *)CACHE_TYPE_ICACHE, |
| 139 | &cache_debugfs_fops); | 137 | &cache_debugfs_fops); |
| 140 | if (!icache_dentry) { | 138 | if (!icache_dentry) { |
| 141 | debugfs_remove(dcache_dentry); | 139 | debugfs_remove(dcache_dentry); |
| 142 | return -ENOMEM; | 140 | return -ENOMEM; |
| 143 | } | 141 | } |
| 144 | if (IS_ERR(icache_dentry)) { | ||
| 145 | debugfs_remove(dcache_dentry); | ||
| 146 | return PTR_ERR(icache_dentry); | ||
| 147 | } | ||
| 148 | 142 | ||
| 149 | return 0; | 143 | return 0; |
| 150 | } | 144 | } |
