usb: remove use of __devinitdata
CONFIG_HOTPLUG is going away as an option so __devinitdata is no longer needed. Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Acked-by: Felipe Balbi <balbi@ti.com> Cc: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
41ac7b3ab7
commit
d3608b6daf
@ -85,7 +85,7 @@ EXPORT_SYMBOL_GPL(usbmisc_get_init_data);
|
|||||||
|
|
||||||
/* End of common functions shared by usbmisc drivers*/
|
/* End of common functions shared by usbmisc drivers*/
|
||||||
|
|
||||||
static struct ci13xxx_platform_data ci13xxx_imx_platdata __devinitdata = {
|
static struct ci13xxx_platform_data ci13xxx_imx_platdata = {
|
||||||
.name = "ci13xxx_imx",
|
.name = "ci13xxx_imx",
|
||||||
.flags = CI13XXX_REQUIRE_TRANSCEIVER |
|
.flags = CI13XXX_REQUIRE_TRANSCEIVER |
|
||||||
CI13XXX_PULLUP_ON_VBUS |
|
CI13XXX_PULLUP_ON_VBUS |
|
||||||
|
@ -2548,7 +2548,7 @@ net2272_pci_remove(struct pci_dev *pdev)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Table of matching PCI IDs */
|
/* Table of matching PCI IDs */
|
||||||
static struct pci_device_id __devinitdata pci_ids[] = {
|
static struct pci_device_id pci_ids[] = {
|
||||||
{ /* RDK 1 card */
|
{ /* RDK 1 card */
|
||||||
.class = ((PCI_CLASS_BRIDGE_OTHER << 8) | 0xfe),
|
.class = ((PCI_CLASS_BRIDGE_OTHER << 8) | 0xfe),
|
||||||
.class_mask = 0,
|
.class_mask = 0,
|
||||||
|
@ -199,7 +199,7 @@ static int spear_ehci_hcd_drv_remove(struct platform_device *pdev)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct of_device_id spear_ehci_id_table[] __devinitdata = {
|
static struct of_device_id spear_ehci_id_table[] = {
|
||||||
{ .compatible = "st,spear600-ehci", },
|
{ .compatible = "st,spear600-ehci", },
|
||||||
{ },
|
{ },
|
||||||
};
|
};
|
||||||
|
@ -805,7 +805,7 @@ static void tegra_ehci_hcd_shutdown(struct platform_device *pdev)
|
|||||||
hcd->driver->shutdown(hcd);
|
hcd->driver->shutdown(hcd);
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct of_device_id tegra_ehci_of_match[] __devinitdata = {
|
static struct of_device_id tegra_ehci_of_match[] = {
|
||||||
{ .compatible = "nvidia,tegra20-ehci", },
|
{ .compatible = "nvidia,tegra20-ehci", },
|
||||||
{ },
|
{ },
|
||||||
};
|
};
|
||||||
|
@ -24,7 +24,7 @@ struct fsl_usb2_dev_data {
|
|||||||
enum fsl_usb2_operating_modes op_mode; /* operating mode */
|
enum fsl_usb2_operating_modes op_mode; /* operating mode */
|
||||||
};
|
};
|
||||||
|
|
||||||
struct fsl_usb2_dev_data dr_mode_data[] __devinitdata = {
|
struct fsl_usb2_dev_data dr_mode_data[] = {
|
||||||
{
|
{
|
||||||
.dr_mode = "host",
|
.dr_mode = "host",
|
||||||
.drivers = { "fsl-ehci", NULL, NULL, },
|
.drivers = { "fsl-ehci", NULL, NULL, },
|
||||||
|
@ -216,7 +216,7 @@ static int spear_ohci_hcd_drv_resume(struct platform_device *dev)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static struct of_device_id spear_ohci_id_table[] __devinitdata = {
|
static struct of_device_id spear_ohci_id_table[] = {
|
||||||
{ .compatible = "st,spear600-ohci", },
|
{ .compatible = "st,spear600-ohci", },
|
||||||
{ },
|
{ },
|
||||||
};
|
};
|
||||||
|
@ -1040,12 +1040,12 @@ static void musb_shutdown(struct platform_device *pdev)
|
|||||||
|| defined(CONFIG_USB_MUSB_AM35X_MODULE) \
|
|| defined(CONFIG_USB_MUSB_AM35X_MODULE) \
|
||||||
|| defined(CONFIG_USB_MUSB_DSPS) \
|
|| defined(CONFIG_USB_MUSB_DSPS) \
|
||||||
|| defined(CONFIG_USB_MUSB_DSPS_MODULE)
|
|| defined(CONFIG_USB_MUSB_DSPS_MODULE)
|
||||||
static ushort __devinitdata fifo_mode = 4;
|
static ushort fifo_mode = 4;
|
||||||
#elif defined(CONFIG_USB_MUSB_UX500) \
|
#elif defined(CONFIG_USB_MUSB_UX500) \
|
||||||
|| defined(CONFIG_USB_MUSB_UX500_MODULE)
|
|| defined(CONFIG_USB_MUSB_UX500_MODULE)
|
||||||
static ushort __devinitdata fifo_mode = 5;
|
static ushort fifo_mode = 5;
|
||||||
#else
|
#else
|
||||||
static ushort __devinitdata fifo_mode = 2;
|
static ushort fifo_mode = 2;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* "modprobe ... fifo_mode=1" etc */
|
/* "modprobe ... fifo_mode=1" etc */
|
||||||
@ -1058,7 +1058,7 @@ MODULE_PARM_DESC(fifo_mode, "initial endpoint configuration");
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* mode 0 - fits in 2KB */
|
/* mode 0 - fits in 2KB */
|
||||||
static struct musb_fifo_cfg __devinitdata mode_0_cfg[] = {
|
static struct musb_fifo_cfg mode_0_cfg[] = {
|
||||||
{ .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, },
|
{ .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, },
|
||||||
{ .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, },
|
{ .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, },
|
||||||
{ .hw_ep_num = 2, .style = FIFO_RXTX, .maxpacket = 512, },
|
{ .hw_ep_num = 2, .style = FIFO_RXTX, .maxpacket = 512, },
|
||||||
@ -1067,7 +1067,7 @@ static struct musb_fifo_cfg __devinitdata mode_0_cfg[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* mode 1 - fits in 4KB */
|
/* mode 1 - fits in 4KB */
|
||||||
static struct musb_fifo_cfg __devinitdata mode_1_cfg[] = {
|
static struct musb_fifo_cfg mode_1_cfg[] = {
|
||||||
{ .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, .mode = BUF_DOUBLE, },
|
{ .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, .mode = BUF_DOUBLE, },
|
||||||
{ .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, .mode = BUF_DOUBLE, },
|
{ .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, .mode = BUF_DOUBLE, },
|
||||||
{ .hw_ep_num = 2, .style = FIFO_RXTX, .maxpacket = 512, .mode = BUF_DOUBLE, },
|
{ .hw_ep_num = 2, .style = FIFO_RXTX, .maxpacket = 512, .mode = BUF_DOUBLE, },
|
||||||
@ -1076,7 +1076,7 @@ static struct musb_fifo_cfg __devinitdata mode_1_cfg[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* mode 2 - fits in 4KB */
|
/* mode 2 - fits in 4KB */
|
||||||
static struct musb_fifo_cfg __devinitdata mode_2_cfg[] = {
|
static struct musb_fifo_cfg mode_2_cfg[] = {
|
||||||
{ .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, },
|
{ .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, },
|
||||||
{ .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, },
|
{ .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, },
|
||||||
{ .hw_ep_num = 2, .style = FIFO_TX, .maxpacket = 512, },
|
{ .hw_ep_num = 2, .style = FIFO_TX, .maxpacket = 512, },
|
||||||
@ -1086,7 +1086,7 @@ static struct musb_fifo_cfg __devinitdata mode_2_cfg[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* mode 3 - fits in 4KB */
|
/* mode 3 - fits in 4KB */
|
||||||
static struct musb_fifo_cfg __devinitdata mode_3_cfg[] = {
|
static struct musb_fifo_cfg mode_3_cfg[] = {
|
||||||
{ .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, .mode = BUF_DOUBLE, },
|
{ .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, .mode = BUF_DOUBLE, },
|
||||||
{ .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, .mode = BUF_DOUBLE, },
|
{ .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, .mode = BUF_DOUBLE, },
|
||||||
{ .hw_ep_num = 2, .style = FIFO_TX, .maxpacket = 512, },
|
{ .hw_ep_num = 2, .style = FIFO_TX, .maxpacket = 512, },
|
||||||
@ -1096,7 +1096,7 @@ static struct musb_fifo_cfg __devinitdata mode_3_cfg[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* mode 4 - fits in 16KB */
|
/* mode 4 - fits in 16KB */
|
||||||
static struct musb_fifo_cfg __devinitdata mode_4_cfg[] = {
|
static struct musb_fifo_cfg mode_4_cfg[] = {
|
||||||
{ .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, },
|
{ .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, },
|
||||||
{ .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, },
|
{ .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, },
|
||||||
{ .hw_ep_num = 2, .style = FIFO_TX, .maxpacket = 512, },
|
{ .hw_ep_num = 2, .style = FIFO_TX, .maxpacket = 512, },
|
||||||
@ -1127,7 +1127,7 @@ static struct musb_fifo_cfg __devinitdata mode_4_cfg[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* mode 5 - fits in 8KB */
|
/* mode 5 - fits in 8KB */
|
||||||
static struct musb_fifo_cfg __devinitdata mode_5_cfg[] = {
|
static struct musb_fifo_cfg mode_5_cfg[] = {
|
||||||
{ .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, },
|
{ .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, },
|
||||||
{ .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, },
|
{ .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, },
|
||||||
{ .hw_ep_num = 2, .style = FIFO_TX, .maxpacket = 512, },
|
{ .hw_ep_num = 2, .style = FIFO_TX, .maxpacket = 512, },
|
||||||
@ -1234,7 +1234,7 @@ fifo_setup(struct musb *musb, struct musb_hw_ep *hw_ep,
|
|||||||
return offset + (maxpacket << ((c_size & MUSB_FIFOSZ_DPB) ? 1 : 0));
|
return offset + (maxpacket << ((c_size & MUSB_FIFOSZ_DPB) ? 1 : 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct musb_fifo_cfg __devinitdata ep0_cfg = {
|
static struct musb_fifo_cfg ep0_cfg = {
|
||||||
.style = FIFO_RXTX, .maxpacket = 64,
|
.style = FIFO_RXTX, .maxpacket = 64,
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1578,7 +1578,7 @@ irqreturn_t musb_interrupt(struct musb *musb)
|
|||||||
EXPORT_SYMBOL_GPL(musb_interrupt);
|
EXPORT_SYMBOL_GPL(musb_interrupt);
|
||||||
|
|
||||||
#ifndef CONFIG_MUSB_PIO_ONLY
|
#ifndef CONFIG_MUSB_PIO_ONLY
|
||||||
static bool __devinitdata use_dma = 1;
|
static bool use_dma = 1;
|
||||||
|
|
||||||
/* "modprobe ... use_dma=0" etc */
|
/* "modprobe ... use_dma=0" etc */
|
||||||
module_param(use_dma, bool, 0);
|
module_param(use_dma, bool, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user