greybus: Bundle: Initialize dma_mask for bundle device
authorViresh Kumar <viresh.kumar@linaro.org>
Mon, 25 Apr 2016 16:20:36 +0000 (21:50 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Mon, 25 Apr 2016 22:14:28 +0000 (15:14 -0700)
We missed this only for bundle device, fix it.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/bundle.c

index 1714482bd34dfb575ec9e033fe43af5563a14abc..1810b62457bc16f2f6159e8051ec4b6363a8d60f 100644 (file)
@@ -125,6 +125,7 @@ struct gb_bundle *gb_bundle_create(struct gb_interface *intf, u8 bundle_id,
        bundle->dev.bus = &greybus_bus_type;
        bundle->dev.type = &greybus_bundle_type;
        bundle->dev.groups = bundle_groups;
+       bundle->dev.dma_mask = intf->dev.dma_mask;
        device_initialize(&bundle->dev);
        dev_set_name(&bundle->dev, "%s.%d", dev_name(&intf->dev), bundle_id);