staging: ozwpan: Make oz_hcd_pd_departed() take a struct pointer.
authorRupesh Gujare <rupesh.gujare@atmel.com>
Tue, 13 Aug 2013 17:29:23 +0000 (18:29 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Aug 2013 21:15:40 +0000 (14:15 -0700)
oz_hcd_pd_departed() takes struct oz_port pointer instead of
void *, change function declaration to avoid ambiguity.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Rupesh Gujare <rupesh.gujare@atmel.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ozwpan/ozhcd.c
drivers/staging/ozwpan/ozhcd.h

index 73d80f21a50f72a1053608b8f4c83b9b6c80e94a..ed3ffeba12ab8606e0ddeea3aaa66527583908a3 100644 (file)
@@ -720,9 +720,9 @@ out:
  * polled. We release the reference we hold on the PD.
  * Context: softirq
  */
-void oz_hcd_pd_departed(void *hport)
+void oz_hcd_pd_departed(struct oz_port *hport)
 {
-       struct oz_port *port = (struct oz_port *)hport;
+       struct oz_port *port = hport;
        struct oz_hcd *ozhcd;
        void *hpd;
        struct oz_endpoint *ep = NULL;
index ef3202fa79ff3171c7a6aaf3bb401bab5929460f..55e97b1c707935e05ba8541b03f6b2f28948b903 100644 (file)
@@ -7,8 +7,8 @@
 
 int oz_hcd_init(void);
 void oz_hcd_term(void);
-void oz_hcd_pd_departed(void *ctx);
 struct oz_port *oz_hcd_pd_arrived(void *ctx);
+void oz_hcd_pd_departed(struct oz_port *hport);
 void oz_hcd_pd_reset(void *hpd, void *hport);
 
 #endif /* _OZHCD_H */