]> err.no Git - linux-2.6/commitdiff
sh: dma: Fix CONFIG_SYSFS=n build.
authorPaul Mundt <lethal@linux-sh.org>
Tue, 11 Sep 2007 08:55:36 +0000 (17:55 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 21 Sep 2007 02:57:53 +0000 (11:57 +0900)
Trivial build fix for when sysfs is disabled.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
include/asm-sh/dma.h

index 4c75b70b64143be6a1cb7de0234e9633b3e06a95..a65b02fd186ef4ec2bf2976846c4bdcd6b9f2201 100644 (file)
@@ -152,14 +152,9 @@ extern struct dma_info *get_dma_info_by_name(const char *dmac_name);
 extern int dma_extend(unsigned int chan, unsigned long op, void *param);
 extern int register_chan_caps(const char *dmac, struct dma_chan_caps *capslist);
 
-#ifdef CONFIG_SYSFS
 /* arch/sh/drivers/dma/dma-sysfs.c */
 extern int dma_create_sysfs_files(struct dma_channel *, struct dma_info *);
 extern void dma_remove_sysfs_files(struct dma_channel *, struct dma_info *);
-#else
-#define dma_create_sysfs_file(channel, info)           do { } while (0)
-#define dma_remove_sysfs_file(channel, info)           do { } while (0)
-#endif
 
 #ifdef CONFIG_PCI
 extern int isa_dma_bridge_buggy;