Thread (21 messages) flat view 21 messages, 5 authors, 2013-01-18

[RFC PATCH 2/7] ARM: OMAP: devices: create device for usb part of control module

From: Sergei Shtylyov <hidden>
Date: 2013-01-17 15:45:54
Also in: linux-devicetree, linux-omap, lkml

Hello.

On 01/15/2013 05:26 PM, kishon wrote:
quoted
On 15-01-2013 12:42, Kishon Vijay Abraham I wrote:
quoted
quoted
A seperate driver has been added to handle the usb part of control
module. A device for the above driver is created here, using the register
address information to be used by the driver for powering on the PHY and
for writing to the mailbox.
quoted
quoted
Signed-off-by: Kishon Vijay Abraham I <redacted>
---
  arch/arm/mach-omap2/devices.c |   50
+++++++++++++++++++++++++++++++++++++++++
  1 file changed, 50 insertions(+)
quoted
quoted
diff --git a/arch/arm/mach-omap2/devices.c
b/arch/arm/mach-omap2/devices.c
index 5e304d0..a761faf4 100644
--- a/arch/arm/mach-omap2/devices.c
+++ b/arch/arm/mach-omap2/devices.c
[...]
quoted
@@ -254,6 +255,54 @@ static inline void omap_init_camera(void)
  #endif
  }

+#if (defined(CONFIG_OMAP_CONTROL_USB) || \
+                defined(CONFIG_OMAP_CONTROL_USB_MODULE))
quoted
    () around || not needed, and you're indenting the second line too much.
quoted
quoted
+static inline void __init omap_init_control_usb(void)
+{
+    int ret = 0;
quoted
    Initializer not needed.
quoted
quoted
+
+    if (cpu_is_omap44xx()) {
+        ret = platform_device_register(&omap4_control_usb);
+        if (ret)
+            pr_err("Error registering omap_control_usb device: %d\n"
+                , ret);
quoted
    Please leave the comma on the previous line.
Sure. I'll fix it.
   Actually, you can use #if IS_ENABLED(CONFIG_OMAP_CONTROL_USB) now instead of
your above constuct.

WBR, Sergei
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help