From patchwork Fri Jan 3 05:28:59 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 22875 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f69.google.com (mail-pa0-f69.google.com [209.85.220.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id BFBC5218E6 for ; Fri, 3 Jan 2014 05:32:49 +0000 (UTC) Received: by mail-pa0-f69.google.com with SMTP id hz1sf48001669pad.8 for ; Thu, 02 Jan 2014 21:32:48 -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=rtDNM4S4JUqq8aEKitEiKl8sVbNfl2HxNa8Y2fiewAQ=; b=jR2f5UZdumm6hXjh99ZKDU7y40t5Ab2d6p7P6I9xV5b7cxZyJ18r2Y8yskNkO4kPcz 6/dKTO/+yEyzBI6DbbyX/y2YHLYu8E1ab3tus87f5Isc48euBHmW7Bp7ZXibE3cuvcIO 8QNrASxhXRrHnmINRakjXVfyxAw8+q46L5tOZC1SYFbZm8/U0lBr5owG8xtGLAS6uokm agTC1ngSiI6uCfCOTyZxqyHuaeToIBwfBu8cW7VJ/J3iqDiexUZzHkX943ywF95V1Kwh Ar8YR/YwgFHLFzVzz44A3sfmKnS87nmag1MEDLGFocksIILvPk38/3khKcv+dJ1G7dfN HH2g== X-Gm-Message-State: ALoCoQm1IwAN8mBkLRojjXAp1tc88CQIu5VbiEB9Tf1npC1V2HpA119qpxYnyC3N/dwQeCMEwbE2 X-Received: by 10.68.237.37 with SMTP id uz5mr35134297pbc.0.1388727167799; Thu, 02 Jan 2014 21:32:47 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.49.10 with SMTP id q10ls4733093qen.0.gmail; Thu, 02 Jan 2014 21:32:47 -0800 (PST) X-Received: by 10.220.174.200 with SMTP id u8mr49685074vcz.6.1388727167648; Thu, 02 Jan 2014 21:32:47 -0800 (PST) Received: from mail-ve0-f180.google.com (mail-ve0-f180.google.com [209.85.128.180]) by mx.google.com with ESMTPS id sc7si2825266vdc.147.2014.01.02.21.32.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 02 Jan 2014 21:32:47 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.180 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.180; Received: by mail-ve0-f180.google.com with SMTP id jz11so7650498veb.39 for ; Thu, 02 Jan 2014 21:32:47 -0800 (PST) X-Received: by 10.52.22.14 with SMTP id z14mr13741012vde.21.1388727167280; Thu, 02 Jan 2014 21:32:47 -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.59.13.131 with SMTP id ey3csp809044ved; Thu, 2 Jan 2014 21:32:46 -0800 (PST) X-Received: by 10.68.209.193 with SMTP id mo1mr94010635pbc.38.1388727166233; Thu, 02 Jan 2014 21:32:46 -0800 (PST) Received: from mail-pa0-f48.google.com (mail-pa0-f48.google.com [209.85.220.48]) by mx.google.com with ESMTPS id tt8si7440845pbc.138.2014.01.02.21.32.45 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 02 Jan 2014 21:32:46 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.48 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.220.48; Received: by mail-pa0-f48.google.com with SMTP id rd3so15398020pab.35 for ; Thu, 02 Jan 2014 21:32:45 -0800 (PST) X-Received: by 10.68.248.100 with SMTP id yl4mr92674540pbc.41.1388727165769; Thu, 02 Jan 2014 21:32:45 -0800 (PST) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id g6sm138945408pat.2.2014.01.02.21.32.42 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 02 Jan 2014 21:32:44 -0800 (PST) From: Sachin Kamat To: linux-usb@vger.kernel.org Cc: balbi@ti.com, gregkh@linuxfoundation.org, sachin.kamat@linaro.org, patches@linaro.org, Robert Baldyga Subject: [PATCH 1/2] usb: gadget: s3c2410_udc: Fix build error Date: Fri, 3 Jan 2014 10:58:59 +0530 Message-Id: <1388726940-15125-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.128.180 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 Cc: 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); } }