diff options
author | Felipe Balbi <balbi@ti.com> | 2012-09-06 08:45:20 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-09-06 12:17:00 -0400 |
commit | d8ee4ea68ff9c0f13646070aeada668a4eae9189 (patch) | |
tree | 92f05de31dc45bb4e5f799f5d4b0fa59b475def1 /arch/arm/plat-omap/include/plat/omap-serial.h | |
parent | 27788c5fe6af98c34950326b62778da15e30eb55 (diff) |
serial: omap: don't access the platform_device
The driver doesn't need to know about its platform_device.
Everything the driver needs can be done through the
struct device pointer. In case we need to use the
OMAP-specific PM function pointers, those can make
sure to find the device's platform_device pointer
so they can find the struct omap_device through
pdev->archdata field.
Tested-by: Shubhrajyoti D <shubhrajyoti@ti.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/arm/plat-omap/include/plat/omap-serial.h')
-rw-r--r-- | arch/arm/plat-omap/include/plat/omap-serial.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/plat-omap/include/plat/omap-serial.h b/arch/arm/plat-omap/include/plat/omap-serial.h index 5cc062620719..90d2d74d1682 100644 --- a/arch/arm/plat-omap/include/plat/omap-serial.h +++ b/arch/arm/plat-omap/include/plat/omap-serial.h | |||
@@ -18,7 +18,7 @@ | |||
18 | #define __OMAP_SERIAL_H__ | 18 | #define __OMAP_SERIAL_H__ |
19 | 19 | ||
20 | #include <linux/serial_core.h> | 20 | #include <linux/serial_core.h> |
21 | #include <linux/platform_device.h> | 21 | #include <linux/device.h> |
22 | #include <linux/pm_qos.h> | 22 | #include <linux/pm_qos.h> |
23 | 23 | ||
24 | #include <plat/mux.h> | 24 | #include <plat/mux.h> |
@@ -74,9 +74,9 @@ struct omap_uart_port_info { | |||
74 | int DTR_present; | 74 | int DTR_present; |
75 | 75 | ||
76 | int (*get_context_loss_count)(struct device *); | 76 | int (*get_context_loss_count)(struct device *); |
77 | void (*set_forceidle)(struct platform_device *); | 77 | void (*set_forceidle)(struct device *); |
78 | void (*set_noidle)(struct platform_device *); | 78 | void (*set_noidle)(struct device *); |
79 | void (*enable_wakeup)(struct platform_device *, bool); | 79 | void (*enable_wakeup)(struct device *, bool); |
80 | }; | 80 | }; |
81 | 81 | ||
82 | struct uart_omap_dma { | 82 | struct uart_omap_dma { |
@@ -108,7 +108,7 @@ struct uart_omap_dma { | |||
108 | struct uart_omap_port { | 108 | struct uart_omap_port { |
109 | struct uart_port port; | 109 | struct uart_port port; |
110 | struct uart_omap_dma uart_dma; | 110 | struct uart_omap_dma uart_dma; |
111 | struct platform_device *pdev; | 111 | struct device *dev; |
112 | 112 | ||
113 | unsigned char ier; | 113 | unsigned char ier; |
114 | unsigned char lcr; | 114 | unsigned char lcr; |