dev_err(hd->parent, "Got an suspend message???\n");
}
-static struct svc_msg *convert_ap_message(struct ap_msg *ap_msg,
- struct greybus_host_device *hd)
+static struct svc_msg *convert_ap_message(struct ap_msg *ap_msg)
{
struct svc_msg *svc_msg;
struct svc_msg_header *header;
+ struct greybus_host_device *hd = ap_msg->hd;
svc_msg = (struct svc_msg *)ap_msg->data;
header = &svc_msg->header;
hd = ap_msg->hd;
/* Turn the "raw" data into a real message */
- svc_msg = convert_ap_message(ap_msg, hd);
+ svc_msg = convert_ap_message(ap_msg);
if (!svc_msg)
return;