summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/svc.h
diff options
context:
space:
mode:
authorJohan Hovold <johan@hovoldconsulting.com>2016-03-30 16:53:17 -0400
committerGreg Kroah-Hartman <gregkh@google.com>2016-03-30 14:13:05 -0700
commitb77e3e5658921537df925c03fd358c4818be6f52 (patch)
tree169c63ff571ee1eccc949eb62805cd16e334fe13 /drivers/staging/greybus/svc.h
parentd764212f73cf270f10b041d8e26a8eb1ee7d4909 (diff)
greybus: core: fix two container-of macros
Fix two greybus container-of macros that used the pointer name for the member. Signed-off-by: Johan Hovold <johan@hovoldconsulting.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/svc.h')
-rw-r--r--drivers/staging/greybus/svc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/greybus/svc.h b/drivers/staging/greybus/svc.h
index 0436f49ef8fa..2f23bc081f82 100644
--- a/drivers/staging/greybus/svc.h
+++ b/drivers/staging/greybus/svc.h
@@ -41,7 +41,7 @@ struct gb_svc {
char *input_phys;
struct gb_svc_watchdog *watchdog;
};
-#define to_gb_svc(d) container_of(d, struct gb_svc, d)
+#define to_gb_svc(d) container_of(d, struct gb_svc, dev)
struct gb_svc *gb_svc_create(struct gb_host_device *hd);
int gb_svc_add(struct gb_svc *svc);