diff options
author | Alexander Shiyan <shc_work@mail.ru> | 2014-02-10 22:18:32 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-02-13 09:34:47 -0800 |
commit | dba29a2894771562d265232ae4b61f0310bab1f5 (patch) | |
tree | 005e94d3ce88997382ac8c771619ace115ba749a /include/linux/platform_data | |
parent | d3a8a252e177cfaa2fb04120dd944104e4417bf5 (diff) | |
download | linux-stable-dba29a2894771562d265232ae4b61f0310bab1f5.tar.gz linux-stable-dba29a2894771562d265232ae4b61f0310bab1f5.tar.bz2 linux-stable-dba29a2894771562d265232ae4b61f0310bab1f5.zip |
serial: max310x: Always use dynamic GPIO ID assignment
Always register GPIOs and use dynamic GPIO ID assignment.
This is no much worth if GPIOs is not used, but helps remove
private driver header and add DT support in the future.
Additionally, patch adds missing uart_unregister_driver()
call if probe() fails.
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/platform_data')
-rw-r--r-- | include/linux/platform_data/max310x.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/platform_data/max310x.h b/include/linux/platform_data/max310x.h index 57a0cd46b847..1140a57e735f 100644 --- a/include/linux/platform_data/max310x.h +++ b/include/linux/platform_data/max310x.h @@ -21,7 +21,6 @@ * * static struct max310x_pdata max3107_pdata = { * .uart_flags[0] = MAX310X_ECHO_SUPRESS | MAX310X_AUTO_DIR_CTRL, - * .gpio_base = -1, * }; * * static struct spi_board_info spi_device_max3107[] = { @@ -45,8 +44,6 @@ struct max310x_pdata { #define MAX310X_AUTO_DIR_CTRL (0x00000004) /* Enable Auto direction * control (RS-485) */ - /* GPIO base number (can be negative) */ - const int gpio_base; }; #endif |