summaryrefslogtreecommitdiffstats
path: root/drivers/usb/misc/sisusbvga/sisusb_con.c
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2019-01-22 16:12:01 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-01-25 10:02:49 +0100
commit0277531df26ff75f010882ad820ca83e35935a2f (patch)
tree10a9052347755eb0155a4871ce99a893b416bfc7 /drivers/usb/misc/sisusbvga/sisusb_con.c
parent022e468e1395737e26a54e11e956eb3e29106087 (diff)
downloadlinux-0277531df26ff75f010882ad820ca83e35935a2f.tar.bz2
usb: sisusb: let files build only when needed
After the previous patch we see, that whole files are ifdeffed depending on CONFIG options. So do not build the files at all if the CONFIG is not enabled. (I.e. move the check from .c to Makefile.) Signed-off-by: Jiri Slaby <jslaby@suse.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/misc/sisusbvga/sisusb_con.c')
-rw-r--r--drivers/usb/misc/sisusbvga/sisusb_con.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/usb/misc/sisusbvga/sisusb_con.c b/drivers/usb/misc/sisusbvga/sisusb_con.c
index 10c15723a7c5..8e6d1b02e7c2 100644
--- a/drivers/usb/misc/sisusbvga/sisusb_con.c
+++ b/drivers/usb/misc/sisusbvga/sisusb_con.c
@@ -70,8 +70,6 @@
#include "sisusb.h"
#include "sisusb_init.h"
-#ifdef CONFIG_USB_SISUSBVGA_CON
-
#define sisusbcon_writew(val, addr) (*(addr) = (val))
#define sisusbcon_readw(addr) (*(addr))
#define sisusbcon_memmovew(d, s, c) memmove(d, s, c)
@@ -1534,8 +1532,3 @@ void __init sisusb_init_concode(void)
for (i = 0; i < MAX_NR_CONSOLES; i++)
mysisusbs[i] = NULL;
}
-
-#endif /* INCL_CON */
-
-
-