Skip to content

Commit

Permalink
serial: omap: remove unnecessary header and add a missing one
Browse files Browse the repository at this point in the history
this driver doesn't use any from <plat/dmtimer.h>, so
we can remove it without any problems.

This will, however cause a problem because omap-serial.c
was relying on indirect inclusion of <linux/platform_device.h>,
let's fix the issue by including <linux/platform_device.h>
on omap-serial.c as it should be.

Tested-by: Shubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Felipe Balbi authored and Greg Kroah-Hartman committed Sep 6, 2012
1 parent 957ee72 commit d21e400
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/tty/serial/omap-serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include <linux/slab.h>
#include <linux/tty.h>
#include <linux/tty_flip.h>
#include <linux/platform_device.h>
#include <linux/io.h>
#include <linux/clk.h>
#include <linux/serial_core.h>
Expand All @@ -40,7 +41,6 @@
#include <linux/of.h>
#include <linux/gpio.h>

#include <plat/dmtimer.h>
#include <plat/omap-serial.h>

#define UART_BUILD_REVISION(x, y) (((x) << 8) | (y))
Expand Down

0 comments on commit d21e400

Please sign in to comment.