diff options
author | Greg Kroah-Hartman <gregkh@google.com> | 2015-10-14 11:31:00 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2015-10-15 09:19:15 -0700 |
commit | 29a167ec87fb971931a033766e9e387d0fcabe7d (patch) | |
tree | ab1a31719536438ef03f60930e9273b8e871b816 /drivers/staging/greybus/raw.c | |
parent | defa37ea9b9396ddc3ba9f556c1f89fec15c260b (diff) | |
download | op-kernel-dev-29a167ec87fb971931a033766e9e387d0fcabe7d.zip op-kernel-dev-29a167ec87fb971931a033766e9e387d0fcabe7d.tar.gz |
greybus: raw: use the bundle struct device instead of the connector
We are removing struct device from the gb_connection structure in the
near future. The gb_bundle structure's struct device should be used as
a replacement.
This patch moves the raw driver to use the bundle pointer instead of the
connection pointer.
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Diffstat (limited to 'drivers/staging/greybus/raw.c')
-rw-r--r-- | drivers/staging/greybus/raw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/greybus/raw.c b/drivers/staging/greybus/raw.c index ce0f59d..fa5025d 100644 --- a/drivers/staging/greybus/raw.c +++ b/drivers/staging/greybus/raw.c @@ -176,8 +176,8 @@ static int gb_raw_connection_init(struct gb_connection *connection) if (retval) goto error_cdev; - raw->device = device_create(raw_class, &connection->dev, raw->dev, raw, - "gb!raw%d", minor); + raw->device = device_create(raw_class, &connection->bundle->dev, + raw->dev, raw, "gb!raw%d", minor); if (IS_ERR(raw->device)) { retval = PTR_ERR(raw->device); goto error_device; |