From patchwork Mon Feb 3 08:29:38 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 24035 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f70.google.com (mail-qa0-f70.google.com [209.85.216.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4F68620341 for ; Mon, 3 Feb 2014 08:34:34 +0000 (UTC) Received: by mail-qa0-f70.google.com with SMTP id ii20sf16592228qab.5 for ; Mon, 03 Feb 2014 00:34:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe:content-type:content-transfer-encoding; bh=xcfAl5JCPswqx3oeG4mphiQ3/TeHgQMyJacQDDazWMI=; b=VROjM8wPSteOW1NHWat9HLzh6SVaG8HKzP0HcTpSqttnJ+5iDVMKV25f06XuRv7rcn jVjBxSzrzGw9e2O/tUKUkGryKnmmNE2Wsj+YrbA1yqlPvNUCk6q1Jmzao+Ra6R2ZiXvK HhwtOFGHlP1YE7M0MX2uQ6RbjhABNv78QmmvWEqYHUPzbLjjS4+UZBmzEsns3nxAFVGS BAstXj36bDvVkhhuquZw9FVvgXAtFhcK4YEEcpUV/hY/712Iz6KuOVvqWgI/Et7iPgoW GzGMTdapUbz6AJCx/1fyNoOJSv9tSfsDgopnUZ7Kg+N9/bOskbaICRY/sdZ9F+38SYA3 e2vw== X-Gm-Message-State: ALoCoQnifJ90SEYfApISY8uwMxnVUFRGgJ7ApTPkKsOET01InXAHJ4PsDN7enIKvAfBNlSts3Apc X-Received: by 10.58.85.3 with SMTP id d3mr1671204vez.40.1391416473438; Mon, 03 Feb 2014 00:34:33 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.23.80 with SMTP id 74ls1787048qgo.61.gmail; Mon, 03 Feb 2014 00:34:33 -0800 (PST) X-Received: by 10.52.248.10 with SMTP id yi10mr35254vdc.39.1391416473358; Mon, 03 Feb 2014 00:34:33 -0800 (PST) Received: from mail-vb0-f43.google.com (mail-vb0-f43.google.com [209.85.212.43]) by mx.google.com with ESMTPS id w6si6649746vcz.8.2014.02.03.00.34.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 03 Feb 2014 00:34:33 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.43 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.43; Received: by mail-vb0-f43.google.com with SMTP id p5so4404694vbn.2 for ; Mon, 03 Feb 2014 00:34:33 -0800 (PST) X-Received: by 10.58.146.5 with SMTP id sy5mr39172veb.43.1391416473279; Mon, 03 Feb 2014 00:34:33 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp140796vcz; Mon, 3 Feb 2014 00:34:32 -0800 (PST) X-Received: by 10.68.226.200 with SMTP id ru8mr36062830pbc.77.1391416472252; Mon, 03 Feb 2014 00:34:32 -0800 (PST) Received: from mail-pa0-f51.google.com (mail-pa0-f51.google.com [209.85.220.51]) by mx.google.com with ESMTPS id if4si19662398pbc.106.2014.02.03.00.34.31 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 03 Feb 2014 00:34:32 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.51 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.220.51; Received: by mail-pa0-f51.google.com with SMTP id ld10so6786773pab.24 for ; Mon, 03 Feb 2014 00:34:31 -0800 (PST) X-Received: by 10.66.138.40 with SMTP id qn8mr1726593pab.154.1391416471873; Mon, 03 Feb 2014 00:34:31 -0800 (PST) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id c7sm53570579pbt.0.2014.02.03.00.34.29 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 03 Feb 2014 00:34:31 -0800 (PST) From: Sachin Kamat To: linux-usb@vger.kernel.org Cc: balbi@ti.com, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH Resend 1/2] usb: gadget: s3c2410_udc: Fix build error Date: Mon, 3 Feb 2014 13:59:38 +0530 Message-Id: <1391416179-24728-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.43 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Pass value instead of address as expected by 'usb_ep_set_maxpacket_limit'. Fixes the following compilation error introduced by commit e117e742d310 ("usb: gadget: add "maxpacket_limit" field to struct usb_ep"): drivers/usb/gadget/s3c2410_udc.c: In function ‘s3c2410_udc_reinit’: drivers/usb/gadget/s3c2410_udc.c:1632:3: error: cannot take address of bit-field ‘maxpacket’ usb_ep_set_maxpacket_limit(&ep->ep, &ep->ep.maxpacket); Signed-off-by: Sachin Kamat Reviewed-by: Robert Baldyga --- drivers/usb/gadget/s3c2410_udc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/s3c2410_udc.c b/drivers/usb/gadget/s3c2410_udc.c index f04b2c3154de..dd9678f85c58 100644 --- a/drivers/usb/gadget/s3c2410_udc.c +++ b/drivers/usb/gadget/s3c2410_udc.c @@ -1629,7 +1629,7 @@ static void s3c2410_udc_reinit(struct s3c2410_udc *dev) ep->ep.desc = NULL; ep->halted = 0; INIT_LIST_HEAD(&ep->queue); - usb_ep_set_maxpacket_limit(&ep->ep, &ep->ep.maxpacket); + usb_ep_set_maxpacket_limit(&ep->ep, ep->ep.maxpacket); } }