From: Sascha Hauer <s.hauer@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH 1/4] usb: chipidea i.MX: remove unused pdata->init hook
Date: Tue, 7 Jan 2014 11:18:33 +0100 [thread overview]
Message-ID: <1389089916-2771-2-git-send-email-s.hauer@pengutronix.de> (raw)
In-Reply-To: <1389089916-2771-1-git-send-email-s.hauer@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
drivers/usb/imx/chipidea-imx.c | 5 -----
include/usb/chipidea-imx.h | 1 -
2 files changed, 6 deletions(-)
diff --git a/drivers/usb/imx/chipidea-imx.c b/drivers/usb/imx/chipidea-imx.c
index d8209d1..2f290e1 100644
--- a/drivers/usb/imx/chipidea-imx.c
+++ b/drivers/usb/imx/chipidea-imx.c
@@ -32,7 +32,6 @@ struct imx_chipidea {
struct ehci_data data;
unsigned long flags;
enum imx_usb_mode mode;
- int (*init)(int port);
int portno;
};
@@ -58,9 +57,6 @@ static int imx_chipidea_port_init(void *drvdata)
if (ret)
dev_err(ci->dev, "misc init failed: %s\n", strerror(-ret));
- if (ci->init)
- ci->init(ci->portno);
-
return ret;
}
@@ -152,7 +148,6 @@ static int imx_chipidea_probe(struct device_d *dev)
}
ci->portno = dev->id;
ci->flags = pdata->flags;
- ci->init = pdata->init;
ci->mode = pdata->mode;
}
diff --git a/include/usb/chipidea-imx.h b/include/usb/chipidea-imx.h
index 5801cf1..487217c 100644
--- a/include/usb/chipidea-imx.h
+++ b/include/usb/chipidea-imx.h
@@ -42,7 +42,6 @@ enum imx_usb_mode {
struct imxusb_platformdata {
unsigned long flags;
enum imx_usb_mode mode;
- int (*init)(int port);
};
int imx_usbmisc_port_init(int port, unsigned flags);
--
1.8.5.2
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2014-01-07 10:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-07 10:18 USB chipidea patches Sascha Hauer
2014-01-07 10:18 ` Sascha Hauer [this message]
2014-01-07 10:18 ` [PATCH 2/4] usb: chipidea i.MX: limit port init to HSIC mode Sascha Hauer
2014-01-07 10:18 ` [PATCH 3/4] usb: chipidea i.MX: always print an error message when ULPI fails Sascha Hauer
2014-01-07 10:18 ` [PATCH 4/4] usb: chipidea i.MX: add some delay after ulpi_setup Sascha Hauer
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=1389089916-2771-2-git-send-email-s.hauer@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
/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