From: Viresh Kumar Date: Wed, 23 Sep 2015 23:48:12 +0000 (-0700) Subject: greybus: firmware: drop 'stage' from ready-to-boot request X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=06986a2cbe7a3d20ed8a8651afd80f08948f3ee6;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git greybus: firmware: drop 'stage' from ready-to-boot request The spec says that it doesn't need it, so dropping it. Signed-off-by: Viresh Kumar Reviewed-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/firmware.c b/drivers/staging/greybus/firmware.c index 5642bc33c1ce..884b7e2ad0a8 100644 --- a/drivers/staging/greybus/firmware.c +++ b/drivers/staging/greybus/firmware.c @@ -123,7 +123,7 @@ static int gb_firmware_ready_to_boot(struct gb_operation *op) struct gb_connection *connection = op->connection; struct gb_firmware_ready_to_boot_request *rtb_request = op->request->payload; struct device *dev = &connection->dev; - u8 stage, status; + u8 status; if (op->request->payload_size != sizeof(*rtb_request)) { dev_err(dev, "%s: Illegal size of ready to boot request (%zu %zu)\n", @@ -132,7 +132,6 @@ static int gb_firmware_ready_to_boot(struct gb_operation *op) return -EINVAL; } - stage = rtb_request->stage; status = rtb_request->status; /* Return error if the blob was invalid */ diff --git a/drivers/staging/greybus/greybus_protocols.h b/drivers/staging/greybus/greybus_protocols.h index 117f55e4463d..4819cd0e229e 100644 --- a/drivers/staging/greybus/greybus_protocols.h +++ b/drivers/staging/greybus/greybus_protocols.h @@ -193,7 +193,6 @@ struct gb_firmware_get_firmware_response { /* Firmware protocol Ready to boot request */ struct gb_firmware_ready_to_boot_request { - __u8 stage; __u8 status; } __packed; /* Firmware protocol Ready to boot response has no payload */