public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Marek Vasut <marek.vasut@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 3/4] USB: Make struct devrequest setup_packet local
Date: Tue, 14 Feb 2012 05:58:18 +0100	[thread overview]
Message-ID: <1329195499-20414-4-git-send-email-marek.vasut@gmail.com> (raw)
In-Reply-To: <1329195499-20414-1-git-send-email-marek.vasut@gmail.com>

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Remy Bohmer <linux@bohmer.net>
---
 common/usb.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/common/usb.c b/common/usb.c
index 81dcbe2..3c9ede4 100644
--- a/common/usb.c
+++ b/common/usb.c
@@ -73,7 +73,6 @@ static struct usb_device usb_dev[USB_MAX_DEVICE];
 static int dev_index;
 static int running;
 static int asynch_allowed;
-static struct devrequest setup_packet;
 
 char usb_started; /* flag for the started/stopped USB status */
 
@@ -180,6 +179,8 @@ int usb_control_msg(struct usb_device *dev, unsigned int pipe,
 			unsigned short value, unsigned short index,
 			void *data, unsigned short size, int timeout)
 {
+	struct devrequest setup_packet;
+
 	if ((timeout == 0) && (!asynch_allowed)) {
 		/* request for a asynch control pipe is not allowed */
 		return -1;
-- 
1.7.8.3

  parent reply	other threads:[~2012-02-14  4:58 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-14  4:58 [U-Boot] [PATCH 0/4] USB cleanup Marek Vasut
2012-02-14  4:58 ` [U-Boot] [PATCH 1/4] USB: Staticize internal functions Marek Vasut
2012-02-14  5:21   ` Mike Frysinger
2012-02-14  4:58 ` [U-Boot] [PATCH 2/4] USB: Separate out USB hub driver Marek Vasut
2012-02-14  5:25   ` Mike Frysinger
2012-02-14  5:59     ` Marek Vasut
2012-02-14  4:58 ` Marek Vasut [this message]
2012-02-14  5:25   ` [U-Boot] [PATCH 3/4] USB: Make struct devrequest setup_packet local Mike Frysinger
2012-02-14  4:58 ` [U-Boot] [PATCH 4/4] USB: Staticize usb_storage.c Marek Vasut
2012-02-14  5:37   ` Mike Frysinger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1329195499-20414-4-git-send-email-marek.vasut@gmail.com \
    --to=marek.vasut@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox