projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tty: delete non-required instances of include <linux/init.h>
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
tty
/
serial
/
8250
/
8250_dw.c
diff --git
a/drivers/tty/serial/8250/8250_dw.c
b/drivers/tty/serial/8250/8250_dw.c
index 06525f10e3641bc2140b140a50d8b994acd662d3..faa64e6461002136069e53619ad78c7534a7261d 100644
(file)
--- a/
drivers/tty/serial/8250/8250_dw.c
+++ b/
drivers/tty/serial/8250/8250_dw.c
@@
-14,7
+14,6
@@
* raised, the LCR needs to be rewritten and the uart status register read.
*/
#include <linux/device.h>
* raised, the LCR needs to be rewritten and the uart status register read.
*/
#include <linux/device.h>
-#include <linux/init.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/serial_8250.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/serial_8250.h>
@@
-274,7
+273,6
@@
static int dw8250_probe_of(struct uart_port *p,
return 0;
}
return 0;
}
-#ifdef CONFIG_ACPI
static int dw8250_probe_acpi(struct uart_8250_port *up,
struct dw8250_data *data)
{
static int dw8250_probe_acpi(struct uart_8250_port *up,
struct dw8250_data *data)
{
@@
-302,13
+300,6
@@
static int dw8250_probe_acpi(struct uart_8250_port *up,
return 0;
}
return 0;
}
-#else
-static inline int dw8250_probe_acpi(struct uart_8250_port *up,
- struct dw8250_data *data)
-{
- return -ENODEV;
-}
-#endif /* CONFIG_ACPI */
static int dw8250_probe(struct platform_device *pdev)
{
static int dw8250_probe(struct platform_device *pdev)
{