aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/drivers
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2006-10-03 11:54:28 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-10-03 11:54:28 -0400
commit6ebfc0e20b409f13e62bbb84ce70102b49945cfd (patch)
tree67fea9b9c039ba47f96c7d51d8b2959b35543edf /arch/sh/drivers
parent1e9abb5b1dc90cfcf0e6f1e10f7aaf34d0f33b6b (diff)
parentfac99d97469e7f91102f97101bea620e5f073196 (diff)
Merge master.kernel.org:/pub/scm/linux/kernel/git/lethal/sh-2.6
* master.kernel.org:/pub/scm/linux/kernel/git/lethal/sh-2.6: sh: Fixup __raw_read_trylock(). sh: Kill off remaining config.h references. sh: Initial gitignore list sh: build fixes for defconfigs. sh: Kill off more dead headers. sh: Set pclk default for SH7705. sh: defconfig updates.
Diffstat (limited to 'arch/sh/drivers')
-rw-r--r--arch/sh/drivers/dma/dma-sysfs.c8
-rw-r--r--arch/sh/drivers/pci/ops-landisk.c1
-rw-r--r--arch/sh/drivers/pci/ops-r7780rp.c2
-rw-r--r--arch/sh/drivers/pci/ops-sh03.c4
-rw-r--r--arch/sh/drivers/pci/ops-titan.c2
-rw-r--r--arch/sh/drivers/pci/pci-sh7780.c2
6 files changed, 5 insertions, 14 deletions
diff --git a/arch/sh/drivers/dma/dma-sysfs.c b/arch/sh/drivers/dma/dma-sysfs.c
index 70a5d82eb2f8..29b8ef9873d1 100644
--- a/arch/sh/drivers/dma/dma-sysfs.c
+++ b/arch/sh/drivers/dma/dma-sysfs.c
@@ -48,12 +48,11 @@ static int __init dma_sysclass_init(void)
48 int ret; 48 int ret;
49 49
50 ret = sysdev_class_register(&dma_sysclass); 50 ret = sysdev_class_register(&dma_sysclass);
51 if (ret == 0) 51 if (unlikely(ret))
52 sysfs_create_file(&dma_sysclass.kset.kobj, &attr_devices.attr); 52 return ret;
53 53
54 return ret; 54 return sysfs_create_file(&dma_sysclass.kset.kobj, &attr_devices.attr);
55} 55}
56
57postcore_initcall(dma_sysclass_init); 56postcore_initcall(dma_sysclass_init);
58 57
59static ssize_t dma_show_dev_id(struct sys_device *dev, char *buf) 58static ssize_t dma_show_dev_id(struct sys_device *dev, char *buf)
@@ -152,4 +151,3 @@ void dma_remove_sysfs_files(struct dma_channel *chan, struct dma_info *info)
152 151
153 sysdev_unregister(dev); 152 sysdev_unregister(dev);
154} 153}
155
diff --git a/arch/sh/drivers/pci/ops-landisk.c b/arch/sh/drivers/pci/ops-landisk.c
index ada301c21fe7..d06030815a96 100644
--- a/arch/sh/drivers/pci/ops-landisk.c
+++ b/arch/sh/drivers/pci/ops-landisk.c
@@ -8,7 +8,6 @@
8 * May be copied or modified under the terms of the GNU General Public 8 * May be copied or modified under the terms of the GNU General Public
9 * License. See linux/COPYING for more information. 9 * License. See linux/COPYING for more information.
10 */ 10 */
11#include <linux/config.h>
12#include <linux/kernel.h> 11#include <linux/kernel.h>
13#include <linux/types.h> 12#include <linux/types.h>
14#include <linux/init.h> 13#include <linux/init.h>
diff --git a/arch/sh/drivers/pci/ops-r7780rp.c b/arch/sh/drivers/pci/ops-r7780rp.c
index 554d5ed2c586..6e3ba9c65b40 100644
--- a/arch/sh/drivers/pci/ops-r7780rp.c
+++ b/arch/sh/drivers/pci/ops-r7780rp.c
@@ -8,8 +8,6 @@
8 * 8 *
9 * PCI initialization for the Renesas SH7780 Highlander R7780RP-1 board 9 * PCI initialization for the Renesas SH7780 Highlander R7780RP-1 board
10 */ 10 */
11
12#include <linux/config.h>
13#include <linux/kernel.h> 11#include <linux/kernel.h>
14#include <linux/types.h> 12#include <linux/types.h>
15#include <linux/init.h> 13#include <linux/init.h>
diff --git a/arch/sh/drivers/pci/ops-sh03.c b/arch/sh/drivers/pci/ops-sh03.c
index e58d556e5f94..ebb58e605d9d 100644
--- a/arch/sh/drivers/pci/ops-sh03.c
+++ b/arch/sh/drivers/pci/ops-sh03.c
@@ -35,10 +35,10 @@ static struct resource sh7751_mem_resource = {
35 .flags = IORESOURCE_MEM 35 .flags = IORESOURCE_MEM
36}; 36};
37 37
38extern struct pci_ops sh7751_pci_ops; 38extern struct pci_ops sh4_pci_ops;
39 39
40struct pci_channel board_pci_channels[] = { 40struct pci_channel board_pci_channels[] = {
41 { &sh7751_pci_ops, &sh7751_io_resource, &sh7751_mem_resource, 0, 0xff }, 41 { &sh4_pci_ops, &sh7751_io_resource, &sh7751_mem_resource, 0, 0xff },
42 { NULL, NULL, NULL, 0, 0 }, 42 { NULL, NULL, NULL, 0, 0 },
43}; 43};
44 44
diff --git a/arch/sh/drivers/pci/ops-titan.c b/arch/sh/drivers/pci/ops-titan.c
index c6097bcd97fd..cd56d53375e7 100644
--- a/arch/sh/drivers/pci/ops-titan.c
+++ b/arch/sh/drivers/pci/ops-titan.c
@@ -11,8 +11,6 @@
11 * 11 *
12 * PCI initialization for the Titan boards 12 * PCI initialization for the Titan boards
13 */ 13 */
14
15#include <linux/config.h>
16#include <linux/kernel.h> 14#include <linux/kernel.h>
17#include <linux/types.h> 15#include <linux/types.h>
18#include <linux/init.h> 16#include <linux/init.h>
diff --git a/arch/sh/drivers/pci/pci-sh7780.c b/arch/sh/drivers/pci/pci-sh7780.c
index bd3064a82087..d6e635296534 100644
--- a/arch/sh/drivers/pci/pci-sh7780.c
+++ b/arch/sh/drivers/pci/pci-sh7780.c
@@ -12,10 +12,8 @@
12 * License. See linux/COPYING for more information. 12 * License. See linux/COPYING for more information.
13 * 13 *
14 */ 14 */
15
16#undef DEBUG 15#undef DEBUG
17 16
18#include <linux/config.h>
19#include <linux/types.h> 17#include <linux/types.h>
20#include <linux/kernel.h> 18#include <linux/kernel.h>
21#include <linux/init.h> 19#include <linux/init.h>