mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
usb: isp1760: remove platform data struct and code
Since the removal of the Blackfin port with:
commit 4ba66a9760
("arch: remove blackfin port")
No one is using or referencing this header and platform data struct.
Remove them.
Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
Link: https://lore.kernel.org/r/20210513084717.2487366-5-rui.silva@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
03e28d5233
commit
f9a88370e6
2 changed files with 3 additions and 36 deletions
|
@ -16,7 +16,6 @@
|
||||||
#include <linux/of.h>
|
#include <linux/of.h>
|
||||||
#include <linux/platform_device.h>
|
#include <linux/platform_device.h>
|
||||||
#include <linux/slab.h>
|
#include <linux/slab.h>
|
||||||
#include <linux/usb/isp1760.h>
|
|
||||||
#include <linux/usb/hcd.h>
|
#include <linux/usb/hcd.h>
|
||||||
|
|
||||||
#include "isp1760-core.h"
|
#include "isp1760-core.h"
|
||||||
|
@ -225,22 +224,9 @@ static int isp1760_plat_probe(struct platform_device *pdev)
|
||||||
|
|
||||||
if (of_property_read_bool(dp, "dreq-polarity"))
|
if (of_property_read_bool(dp, "dreq-polarity"))
|
||||||
devflags |= ISP1760_FLAG_DREQ_POL_HIGH;
|
devflags |= ISP1760_FLAG_DREQ_POL_HIGH;
|
||||||
} else if (dev_get_platdata(&pdev->dev)) {
|
} else {
|
||||||
struct isp1760_platform_data *pdata =
|
pr_err("isp1760: no platform data\n");
|
||||||
dev_get_platdata(&pdev->dev);
|
return -ENXIO;
|
||||||
|
|
||||||
if (pdata->is_isp1761)
|
|
||||||
devflags |= ISP1760_FLAG_ISP1761;
|
|
||||||
if (pdata->bus_width_16)
|
|
||||||
devflags |= ISP1760_FLAG_BUS_WIDTH_16;
|
|
||||||
if (pdata->port1_otg)
|
|
||||||
devflags |= ISP1760_FLAG_OTG_EN;
|
|
||||||
if (pdata->analog_oc)
|
|
||||||
devflags |= ISP1760_FLAG_ANALOG_OC;
|
|
||||||
if (pdata->dack_polarity_high)
|
|
||||||
devflags |= ISP1760_FLAG_DACK_POL_HIGH;
|
|
||||||
if (pdata->dreq_polarity_high)
|
|
||||||
devflags |= ISP1760_FLAG_DREQ_POL_HIGH;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = isp1760_register(mem_res, irq_res->start, irqflags, &pdev->dev,
|
ret = isp1760_register(mem_res, irq_res->start, irqflags, &pdev->dev,
|
||||||
|
|
|
@ -1,19 +0,0 @@
|
||||||
/* SPDX-License-Identifier: GPL-2.0 */
|
|
||||||
/*
|
|
||||||
* board initialization should put one of these into dev->platform_data
|
|
||||||
* and place the isp1760 onto platform_bus named "isp1760-hcd".
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef __LINUX_USB_ISP1760_H
|
|
||||||
#define __LINUX_USB_ISP1760_H
|
|
||||||
|
|
||||||
struct isp1760_platform_data {
|
|
||||||
unsigned is_isp1761:1; /* Chip is ISP1761 */
|
|
||||||
unsigned bus_width_16:1; /* 16/32-bit data bus width */
|
|
||||||
unsigned port1_otg:1; /* Port 1 supports OTG */
|
|
||||||
unsigned analog_oc:1; /* Analog overcurrent */
|
|
||||||
unsigned dack_polarity_high:1; /* DACK active high */
|
|
||||||
unsigned dreq_polarity_high:1; /* DREQ active high */
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif /* __LINUX_USB_ISP1760_H */
|
|
Loading…
Add table
Reference in a new issue