Commit a0c1fb2e authored by Steven Miao's avatar Steven Miao

blackfin: portmux: cleanup head file

drop unused head file
change pinmux request/free macro for backward compatiblity
add function declaration
Signed-off-by: default avatarSteven Miao <realmz6@gmail.com>
parent fa730d62
...@@ -18,16 +18,14 @@ ...@@ -18,16 +18,14 @@
#define P_DONTCARE 0x1000 #define P_DONTCARE 0x1000
#ifdef CONFIG_PINCTRL #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 gpio_pint_regs bfin_pint_regs
#define adi_internal_set_wake bfin_internal_set_wake #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_free(per)
#define peripheral_request_list(per, label) \ #define peripheral_request_list(per, label) (0)
(pdev ? (IS_ERR(devm_pinctrl_get_select_default(&pdev->dev)) \
? -EINVAL : 0) : 0)
#define peripheral_free_list(per) #define peripheral_free_list(per)
#else #else
int peripheral_request(unsigned short per, const char *label); int peripheral_request(unsigned short per, const char *label);
...@@ -39,7 +37,7 @@ void peripheral_free_list(const unsigned short per[]); ...@@ -39,7 +37,7 @@ void peripheral_free_list(const unsigned short per[]);
#include <linux/err.h> #include <linux/err.h>
#include <linux/pinctrl/pinctrl.h> #include <linux/pinctrl/pinctrl.h>
#include <mach/portmux.h> #include <mach/portmux.h>
#include <linux/gpio.h> #include <mach/gpio.h>
#ifndef P_SPORT2_TFS #ifndef P_SPORT2_TFS
#define P_SPORT2_TFS P_UNDEF #define P_SPORT2_TFS P_UNDEF
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment