From: Fabio Estevam Date: Thu, 8 May 2014 16:25:57 +0000 (+0300) Subject: usb: xhci: Use IS_ENABLED() macro X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=961b3d0a990f8b1214f5425c4acbebbd0b777e36;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git usb: xhci: Use IS_ENABLED() macro Using the IS_ENABLED() macro can make the code shorter and easier to read. Signed-off-by: Fabio Estevam Signed-off-by: Mathias Nyman Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h index 4746816aed3e..cc67c7686706 100644 --- a/drivers/usb/host/xhci.h +++ b/drivers/usb/host/xhci.h @@ -1738,8 +1738,7 @@ static inline int xhci_register_pci(void) { return 0; } static inline void xhci_unregister_pci(void) {} #endif -#if defined(CONFIG_USB_XHCI_PLATFORM) \ - || defined(CONFIG_USB_XHCI_PLATFORM_MODULE) +#if IS_ENABLED(CONFIG_USB_XHCI_PLATFORM) int xhci_register_plat(void); void xhci_unregister_plat(void); #else