Re: [serial] Calling platform specific code on driver bind/unbind

2015-12-12 Thread Andy Shevchenko
On Fri, Dec 4, 2015 at 11:37 PM, Piotr Madalinski wrote: > Hi, > I'm hacking my openwrt router and look for a proper way to make a serial > driver call a platform-specific function such as this: > > static void ath79_enable_uart(void) { > if (soc_is_ar933x()) > ath79_gpio_function_enab

[serial] Calling platform specific code on driver bind/unbind

2015-12-04 Thread Piotr Madalinski
Hi, I'm hacking my openwrt router and look for a proper way to make a serial driver call a platform-specific function such as this: static void ath79_enable_uart(void) { if (soc_is_ar933x()) ath79_gpio_function_enable(AR933X_GPIO_FUNC_UART_EN); } and static void ath79_disable_uart