summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2015-09-01 17:16:16 +0530
committerJohan Hovold <johan@hovoldconsulting.com>2015-09-02 12:09:55 +0200
commitb9fb704afd6e2e3c749fc076f1d8fa36ae695d4d (patch)
tree368e265923498e9189712c1f4fe7a48820bc74ac /drivers
parent2630fbf828ed921bd52cfe1fbacc9ad16aa2f47a (diff)
greybus: svc: get hd directly from connection
There is no need to perform connection->bundle->intf->hd as the same can be done with connection->hd. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/greybus/svc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/greybus/svc.c b/drivers/staging/greybus/svc.c
index db009223d759..ac8ff44f3a89 100644
--- a/drivers/staging/greybus/svc.c
+++ b/drivers/staging/greybus/svc.c
@@ -272,7 +272,7 @@ static void svc_process_hotplug(struct work_struct *work)
struct gb_svc_intf_hotplug_request *hotplug = &svc_hotplug->data;
struct gb_connection *connection = svc_hotplug->connection;
struct gb_svc *svc = connection->private;
- struct greybus_host_device *hd = connection->bundle->intf->hd;
+ struct greybus_host_device *hd = connection->hd;
struct device *dev = &connection->dev;
struct gb_interface *intf;
u8 intf_id, device_id;
@@ -399,7 +399,7 @@ static int gb_svc_intf_hot_unplug_recv(struct gb_operation *op)
{
struct gb_message *request = op->request;
struct gb_svc_intf_hot_unplug_request *hot_unplug = request->payload;
- struct greybus_host_device *hd = op->connection->bundle->intf->hd;
+ struct greybus_host_device *hd = op->connection->hd;
struct device *dev = &op->connection->dev;
u8 device_id;
struct gb_interface *intf;