Skip to content

Commit

Permalink
usb: dwc3: core: get rid of DWC3_PM_OPS macro
Browse files Browse the repository at this point in the history
that macro is unnecessary and just adds pointless
obfuscation. Let's remove it.

Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
  • Loading branch information
Felipe Balbi committed Jun 20, 2016
1 parent 9f8a67b commit 7f370ed
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions drivers/usb/dwc3/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1209,16 +1209,12 @@ static int dwc3_resume(struct device *dev)

return ret;
}
#endif /* CONFIG_PM_SLEEP */

static const struct dev_pm_ops dwc3_dev_pm_ops = {
SET_SYSTEM_SLEEP_PM_OPS(dwc3_suspend, dwc3_resume)
};

#define DWC3_PM_OPS &(dwc3_dev_pm_ops)
#else
#define DWC3_PM_OPS NULL
#endif

#ifdef CONFIG_OF
static const struct of_device_id of_dwc3_match[] = {
{
Expand Down Expand Up @@ -1250,7 +1246,7 @@ static struct platform_driver dwc3_driver = {
.name = "dwc3",
.of_match_table = of_match_ptr(of_dwc3_match),
.acpi_match_table = ACPI_PTR(dwc3_acpi_match),
.pm = DWC3_PM_OPS,
.pm = &dwc3_dev_pm_ops,
},
};

Expand Down

0 comments on commit 7f370ed

Please sign in to comment.