diff options
author | Paul Mundt <lethal@linux-sh.org> | 2006-10-03 00:14:04 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2006-10-03 00:14:04 -0400 |
commit | 711fa8096863e4b50bb97f9ebc44606dc2182ac3 (patch) | |
tree | 6d0a3a76a0945db8f61957d5b7542a18ab7fc0db /arch/sh/drivers | |
parent | 059fbd6a5ee9a35ac9f15edb2876a50bd88a008d (diff) |
sh: build fixes for defconfigs.
Get all of the defconfigs building again.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/drivers')
-rw-r--r-- | arch/sh/drivers/dma/dma-sysfs.c | 8 | ||||
-rw-r--r-- | arch/sh/drivers/pci/ops-sh03.c | 4 |
2 files changed, 5 insertions, 7 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 | |||
57 | postcore_initcall(dma_sysclass_init); | 56 | postcore_initcall(dma_sysclass_init); |
58 | 57 | ||
59 | static ssize_t dma_show_dev_id(struct sys_device *dev, char *buf) | 58 | static 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-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 | ||
38 | extern struct pci_ops sh7751_pci_ops; | 38 | extern struct pci_ops sh4_pci_ops; |
39 | 39 | ||
40 | struct pci_channel board_pci_channels[] = { | 40 | struct 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 | ||