From: Peter E. Berger Date: Wed, 16 Sep 2015 08:12:58 +0000 (-0500) Subject: USB: io_ti: Remove obsolete dev parameter from build_i2c_fw_hdr X-Git-Tag: v4.14-rc1~4422^2~10^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=277bf37bff1b470ebf33da25f8977e08e4a2193e;p=platform%2Fkernel%2Flinux-rpi.git USB: io_ti: Remove obsolete dev parameter from build_i2c_fw_hdr Remove unused "dev" parameter from build_i2c_fw_hdr() and its caller. Signed-off-by: Peter E. Berger Signed-off-by: Johan Hovold --- diff --git a/drivers/usb/serial/io_ti.c b/drivers/usb/serial/io_ti.c index 0ac1b10..fc82408 100644 --- a/drivers/usb/serial/io_ti.c +++ b/drivers/usb/serial/io_ti.c @@ -785,8 +785,7 @@ exit: } /* Build firmware header used for firmware update */ -static int build_i2c_fw_hdr(u8 *header, struct device *dev, - const struct firmware *fw) +static int build_i2c_fw_hdr(u8 *header, const struct firmware *fw) { __u8 *buffer; int buffer_size; @@ -1245,7 +1244,7 @@ static int download_fw(struct edgeport_serial *serial, * UMP Ram to I2C and the firmware will update the * record type from 0xf2 to 0x02. */ - status = build_i2c_fw_hdr(header, dev, fw); + status = build_i2c_fw_hdr(header, fw); if (status) { kfree(vheader); kfree(header);