ps3: shorten ps3_system_bus_[gs]et_driver_data to ps3_system_bus_[gs]et_drvdata
Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com> Cc: Geoff Levand <geoffrey.levand@am.sony.com> Cc: Jim Paris <jim@jtan.com> Acked-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:

committed by
Benjamin Herrenschmidt

parent
9f08e9db84
commit
03fa68c245
@@ -162,7 +162,7 @@ static int ps3_ehci_probe(struct ps3_system_bus_device *dev)
|
||||
dev_dbg(&dev->core, "%s:%d: virq %lu\n", __func__, __LINE__,
|
||||
(unsigned long)virq);
|
||||
|
||||
ps3_system_bus_set_driver_data(dev, hcd);
|
||||
ps3_system_bus_set_drvdata(dev, hcd);
|
||||
|
||||
result = usb_add_hcd(hcd, virq, IRQF_DISABLED);
|
||||
|
||||
@@ -195,8 +195,7 @@ fail_start:
|
||||
static int ps3_ehci_remove(struct ps3_system_bus_device *dev)
|
||||
{
|
||||
unsigned int tmp;
|
||||
struct usb_hcd *hcd =
|
||||
(struct usb_hcd *)ps3_system_bus_get_driver_data(dev);
|
||||
struct usb_hcd *hcd = ps3_system_bus_get_drvdata(dev);
|
||||
|
||||
BUG_ON(!hcd);
|
||||
|
||||
@@ -208,7 +207,7 @@ static int ps3_ehci_remove(struct ps3_system_bus_device *dev)
|
||||
ehci_shutdown(hcd);
|
||||
usb_remove_hcd(hcd);
|
||||
|
||||
ps3_system_bus_set_driver_data(dev, NULL);
|
||||
ps3_system_bus_set_drvdata(dev, NULL);
|
||||
|
||||
BUG_ON(!hcd->regs);
|
||||
iounmap(hcd->regs);
|
||||
|
@@ -162,7 +162,7 @@ static int ps3_ohci_probe(struct ps3_system_bus_device *dev)
|
||||
dev_dbg(&dev->core, "%s:%d: virq %lu\n", __func__, __LINE__,
|
||||
(unsigned long)virq);
|
||||
|
||||
ps3_system_bus_set_driver_data(dev, hcd);
|
||||
ps3_system_bus_set_drvdata(dev, hcd);
|
||||
|
||||
result = usb_add_hcd(hcd, virq, IRQF_DISABLED);
|
||||
|
||||
@@ -195,8 +195,7 @@ fail_start:
|
||||
static int ps3_ohci_remove(struct ps3_system_bus_device *dev)
|
||||
{
|
||||
unsigned int tmp;
|
||||
struct usb_hcd *hcd =
|
||||
(struct usb_hcd *)ps3_system_bus_get_driver_data(dev);
|
||||
struct usb_hcd *hcd = ps3_system_bus_get_drvdata(dev);
|
||||
|
||||
BUG_ON(!hcd);
|
||||
|
||||
@@ -208,7 +207,7 @@ static int ps3_ohci_remove(struct ps3_system_bus_device *dev)
|
||||
ohci_shutdown(hcd);
|
||||
usb_remove_hcd(hcd);
|
||||
|
||||
ps3_system_bus_set_driver_data(dev, NULL);
|
||||
ps3_system_bus_set_drvdata(dev, NULL);
|
||||
|
||||
BUG_ON(!hcd->regs);
|
||||
iounmap(hcd->regs);
|
||||
|
Reference in New Issue
Block a user