]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
USB: serial: use IS_ENABLED() instead of checking for FOO || FOO_MODULE
authorJavier Martinez Canillas <javier@osg.samsung.com>
Wed, 20 Apr 2016 18:26:58 +0000 (14:26 -0400)
committerJohan Hovold <johan@kernel.org>
Mon, 25 Apr 2016 10:39:58 +0000 (12:39 +0200)
The IS_ENABLED() macro checks if a Kconfig symbol has been enabled either
built-in or as a module, use that macro instead of open coding the same.

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/usb-serial.c

index 46f1f13b41f1459264e292d36087962f1a666b6f..7ecf4ff86b9a7e26a6cfbff49bba3d698a535de3 100644 (file)
@@ -815,7 +815,7 @@ static int usb_serial_probe(struct usb_interface *interface,
                }
        }
 
-#if defined(CONFIG_USB_SERIAL_PL2303) || defined(CONFIG_USB_SERIAL_PL2303_MODULE)
+#if IS_ENABLED(CONFIG_USB_SERIAL_PL2303)
        /* BEGIN HORRIBLE HACK FOR PL2303 */
        /* this is needed due to the looney way its endpoints are set up */
        if (((le16_to_cpu(dev->descriptor.idVendor) == PL2303_VENDOR_ID) &&