aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/greybus/firmware.c
diff options
context:
space:
mode:
authorGravatar Johan Hovold <johan@hovoldconsulting.com> 2015-11-21 10:52:02 +0100
committerGravatar Greg Kroah-Hartman <gregkh@google.com> 2015-11-21 17:15:35 -0800
commitf65fa47f28f303c84b701dadda6d4f48fb541691 (patch)
treeff2bb4f2f7dba52d71eb4fd8d6ca15e4e84bbffa /drivers/staging/greybus/firmware.c
parentgreybus: interface: remove unique id (diff)
downloadlinux-f65fa47f28f303c84b701dadda6d4f48fb541691.tar.gz
linux-f65fa47f28f303c84b701dadda6d4f48fb541691.tar.bz2
linux-f65fa47f28f303c84b701dadda6d4f48fb541691.zip
greybus: fix vendor and product matching
Fix vendor and product matching by matching on the 32-bit Ara vendor and product ids. Remove the "fake" 16-bit vendor and product ids and export the Ara ids using the "vendor" and "product" interface attributes instead. Signed-off-by: Johan Hovold <johan@hovoldconsulting.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/firmware.c')
-rw-r--r--drivers/staging/greybus/firmware.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/greybus/firmware.c b/drivers/staging/greybus/firmware.c
index a95be08c26d9..e99d8d679686 100644
--- a/drivers/staging/greybus/firmware.c
+++ b/drivers/staging/greybus/firmware.c
@@ -41,7 +41,7 @@ static int download_firmware(struct gb_firmware *firmware, u8 stage)
snprintf(firmware_name, sizeof(firmware_name),
"ara:%08x:%08x:%08x:%08x:%02x.tftf",
intf->unipro_mfg_id, intf->unipro_prod_id,
- intf->ara_vend_id, intf->ara_prod_id, stage);
+ intf->vendor, intf->product, stage);
return request_firmware(&firmware->fw, firmware_name,
&connection->bundle->dev);