diff options
-rw-r--r-- | Documentation/mailbox.txt | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Documentation/mailbox.txt b/Documentation/mailbox.txt index 1092ad9578da..7ed371c85204 100644 --- a/Documentation/mailbox.txt +++ b/Documentation/mailbox.txt | |||
@@ -51,8 +51,7 @@ struct demo_client { | |||
51 | */ | 51 | */ |
52 | static void message_from_remote(struct mbox_client *cl, void *mssg) | 52 | static void message_from_remote(struct mbox_client *cl, void *mssg) |
53 | { | 53 | { |
54 | struct demo_client *dc = container_of(mbox_client, | 54 | struct demo_client *dc = container_of(cl, struct demo_client, cl); |
55 | struct demo_client, cl); | ||
56 | if (dc->async) { | 55 | if (dc->async) { |
57 | if (is_an_ack(mssg)) { | 56 | if (is_an_ack(mssg)) { |
58 | /* An ACK to our last sample sent */ | 57 | /* An ACK to our last sample sent */ |
@@ -68,8 +67,7 @@ static void message_from_remote(struct mbox_client *cl, void *mssg) | |||
68 | 67 | ||
69 | static void sample_sent(struct mbox_client *cl, void *mssg, int r) | 68 | static void sample_sent(struct mbox_client *cl, void *mssg, int r) |
70 | { | 69 | { |
71 | struct demo_client *dc = container_of(mbox_client, | 70 | struct demo_client *dc = container_of(cl, struct demo_client, cl); |
72 | struct demo_client, cl); | ||
73 | complete(&dc->c); | 71 | complete(&dc->c); |
74 | } | 72 | } |
75 | 73 | ||