blackfin: portmux: cleanup head file
authorSteven Miao <realmz6@gmail.com>
Mon, 17 Mar 2014 05:36:51 +0000 (13:36 +0800)
committerSteven Miao <realmz6@gmail.com>
Sat, 12 Apr 2014 00:46:32 +0000 (08:46 +0800)
drop unused head file
change pinmux request/free macro for backward compatiblity
add function declaration

Signed-off-by: Steven Miao <realmz6@gmail.com>
arch/blackfin/include/asm/portmux.h

index 7aa20436e7998a283a95e1a3a1a82351ce8ff9d6..c8f0939419be36d0b75cf30a9965dac0d6ad3009 100644 (file)
 #define P_DONTCARE     0x1000
 
 #ifdef CONFIG_PINCTRL
-#include <asm/irq_handler.h>
+int bfin_internal_set_wake(unsigned int irq, unsigned int state);
 
 #define gpio_pint_regs bfin_pint_regs
 #define adi_internal_set_wake bfin_internal_set_wake
 
-#define peripheral_request(per, label) 0
+#define peripheral_request(per, label) (0)
 #define peripheral_free(per)
-#define peripheral_request_list(per, label) \
-       (pdev ? (IS_ERR(devm_pinctrl_get_select_default(&pdev->dev)) \
-       ? -EINVAL : 0) : 0)
+#define peripheral_request_list(per, label) (0)
 #define peripheral_free_list(per)
 #else
 int peripheral_request(unsigned short per, const char *label);
@@ -39,7 +37,7 @@ void peripheral_free_list(const unsigned short per[]);
 #include <linux/err.h>
 #include <linux/pinctrl/pinctrl.h>
 #include <mach/portmux.h>
-#include <linux/gpio.h>
+#include <mach/gpio.h>
 
 #ifndef P_SPORT2_TFS
 #define P_SPORT2_TFS P_UNDEF