Skip to content

Commit a75a5b1

Browse files
Bartosz Golaszewskigregkh
authored andcommitted
usb: ohci-da8xx: remove unused platform data
We no longer support any board files for DaVinci in mainline and so struct da8xx_ohci_root_hub is no longer used. Remove it together with all the code it's used for. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Acked-by: Alan Stern <stern@rowland.harvard.edu> Link: https://patch.msgid.link/20251114-davinci-usb-v1-1-737380353a74@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 363eb9b commit a75a5b1

2 files changed

Lines changed: 0 additions & 39 deletions

File tree

drivers/usb/host/ohci-da8xx.c

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
#include <linux/of.h>
1919
#include <linux/platform_device.h>
2020
#include <linux/phy/phy.h>
21-
#include <linux/platform_data/usb-davinci.h>
2221
#include <linux/regulator/consumer.h>
2322
#include <linux/usb.h>
2423
#include <linux/usb/hcd.h>
@@ -166,17 +165,6 @@ static int ohci_da8xx_has_oci(struct usb_hcd *hcd)
166165
return 0;
167166
}
168167

169-
static int ohci_da8xx_has_potpgt(struct usb_hcd *hcd)
170-
{
171-
struct device *dev = hcd->self.controller;
172-
struct da8xx_ohci_root_hub *hub = dev_get_platdata(dev);
173-
174-
if (hub && hub->potpgt)
175-
return 1;
176-
177-
return 0;
178-
}
179-
180168
static int ohci_da8xx_regulator_event(struct notifier_block *nb,
181169
unsigned long event, void *data)
182170
{
@@ -228,7 +216,6 @@ static int ohci_da8xx_register_notify(struct usb_hcd *hcd)
228216
static int ohci_da8xx_reset(struct usb_hcd *hcd)
229217
{
230218
struct device *dev = hcd->self.controller;
231-
struct da8xx_ohci_root_hub *hub = dev_get_platdata(dev);
232219
struct ohci_hcd *ohci = hcd_to_ohci(hcd);
233220
int result;
234221
u32 rh_a;
@@ -266,10 +253,6 @@ static int ohci_da8xx_reset(struct usb_hcd *hcd)
266253
rh_a &= ~RH_A_NOCP;
267254
rh_a |= RH_A_OCPM;
268255
}
269-
if (ohci_da8xx_has_potpgt(hcd)) {
270-
rh_a &= ~RH_A_POTPGT;
271-
rh_a |= hub->potpgt << 24;
272-
}
273256
ohci_writel(ohci, rh_a, &ohci->regs->roothub.a);
274257

275258
return result;

include/linux/platform_data/usb-davinci.h

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)