sysfs: Complain bitterly about attempts to remove files from nonexistent directories.
[zen-stable.git] / arch / arm / mach-shmobile / include / mach / gpio.h
blobde795b42232a8940720ed8e44ca3bc7da7431372
1 /*
2 * Generic GPIO API and pinmux table support
4 * Copyright (c) 2008 Magnus Damm
6 * This file is subject to the terms and conditions of the GNU General Public
7 * License. See the file "COPYING" in the main directory of this archive
8 * for more details.
9 */
10 #ifndef __ASM_ARCH_GPIO_H
11 #define __ASM_ARCH_GPIO_H
13 #include <linux/kernel.h>
14 #include <linux/errno.h>
15 #include <linux/sh_pfc.h>
17 #ifdef CONFIG_GPIOLIB
19 static inline int irq_to_gpio(unsigned int irq)
21 return -ENOSYS;
24 #else
26 #define __ARM_GPIOLIB_COMPLEX
28 #endif /* CONFIG_GPIOLIB */
30 #endif /* __ASM_ARCH_GPIO_H */