diff options
| author | 2014-04-21 10:50:35 -0500 | |
|---|---|---|
| committer | 2014-04-21 14:07:25 -0500 | |
| commit | dca769bd5a76e9e634cc36987760306846153cac (patch) | |
| tree | 9017bb2b22932d2cfb2fe6514cebec3c725503ac /include/linux/usb | |
| parent | usb: phy: generic: allow multiples calls to usb_phy_generic_register() (diff) | |
| download | linux-dev-dca769bd5a76e9e634cc36987760306846153cac.tar.xz linux-dev-dca769bd5a76e9e634cc36987760306846153cac.zip | |
usb: phy: generic: switch over to IS_ENABLED()
when checking if our generic PHY is enabled,
it's a lot easier to use IS_ENABLED() instead
of manually checking for it. While at that, also
remove the bogus defined(MODULE) at the end of
the line.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'include/linux/usb')
| -rw-r--r-- | include/linux/usb/usb_phy_generic.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/usb/usb_phy_generic.h b/include/linux/usb/usb_phy_generic.h index 8346bcc50c2f..68adae83affc 100644 --- a/include/linux/usb/usb_phy_generic.h +++ b/include/linux/usb/usb_phy_generic.h @@ -13,7 +13,7 @@ struct usb_phy_generic_platform_data { int gpio_reset; }; -#if defined(CONFIG_NOP_USB_XCEIV) || (defined(CONFIG_NOP_USB_XCEIV_MODULE) && defined(MODULE)) +#if IS_ENABLED(CONFIG_NOP_USB_XCEIV) /* sometimes transceivers are accessed only through e.g. ULPI */ extern struct platform_device *usb_phy_generic_register(void); extern void usb_phy_generic_unregister(struct platform_device *); |
