]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: unisys: Move visorchannel into visorbus
authorDon Zickus <dzickus@redhat.com>
Tue, 5 May 2015 22:36:01 +0000 (18:36 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 May 2015 13:25:58 +0000 (15:25 +0200)
visorchannel seems to be a necessary component to visorbus and can never
function as a standalone module.  Let's treat it like a visorbus feature
that is always enabled.

Signed-off-by: Don Zickus <dzickus@redhat.com>
Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/Kconfig
drivers/staging/unisys/Makefile
drivers/staging/unisys/visorbus/Kconfig
drivers/staging/unisys/visorbus/Makefile
drivers/staging/unisys/visorbus/globals.h [new file with mode: 0644]
drivers/staging/unisys/visorbus/visorchannel.h [moved from drivers/staging/unisys/visorchannel/visorchannel.h with 100% similarity]
drivers/staging/unisys/visorbus/visorchannel_funcs.c [moved from drivers/staging/unisys/visorchannel/visorchannel_funcs.c with 100% similarity]
drivers/staging/unisys/visorchipset/Kconfig
drivers/staging/unisys/visorchipset/Makefile

index 8d056b55ced71372ab4d8cb4601663532870e481..dbdd4492cf0f1d4dc6b15cbeb56fa50ad5140e26 100644 (file)
@@ -10,7 +10,6 @@ menuconfig UNISYSSPAR
 if UNISYSSPAR
 
 source "drivers/staging/unisys/visorutil/Kconfig"
-source "drivers/staging/unisys/visorchannel/Kconfig"
 source "drivers/staging/unisys/visorchipset/Kconfig"
 source "drivers/staging/unisys/visorbus/Kconfig"
 
index 1ed9d39ff23017b20a4d14f502af4128db890285..b14a4777fd48f110a9749c9216fa515d3af333bf 100644 (file)
@@ -2,6 +2,5 @@
 # Makefile for Unisys SPAR drivers
 #
 obj-$(CONFIG_UNISYS_VISORUTIL)         += visorutil/
-obj-$(CONFIG_UNISYS_VISORCHANNEL)      += visorchannel/
 obj-$(CONFIG_UNISYS_VISORCHIPSET)      += visorchipset/
 obj-$(CONFIG_UNISYS_VISORBUS)          += visorbus/
index 0141528657e23d65281c5d0bdaf193046c3398ed..12cf8f06355072f718ca86cd00a56f0c601651f1 100644 (file)
@@ -4,7 +4,6 @@
 
 config UNISYS_VISORBUS
        tristate "Unisys visorbus driver"
-       depends on UNISYSSPAR && UNISYS_VISORUTIL && UNISYS_VISORCHANNEL && UNISYS_VISORCHIPSET
+       depends on UNISYSSPAR && UNISYS_VISORUTIL && UNISYS_VISORCHIPSET
        ---help---
        If you say Y here, you will enable the Unisys visorbus driver.
-
index 60bb96bad23945fadb550116786f9cfc165b2731..20d87daf5b00ae54c569467e38ee9ce264c6c966 100644 (file)
@@ -5,9 +5,9 @@
 obj-$(CONFIG_UNISYS_VISORBUS)  += visorbus.o
 
 visorbus-y := visorbus_main.o devmajorminor_attr.o businst_attr.o channel_attr.o
+visorbus-y     += visorchannel_funcs.o
 
 ccflags-y += -Idrivers/staging/unisys/include
-ccflags-y += -Idrivers/staging/unisys/visorchannel
 ccflags-y += -Idrivers/staging/unisys/visorchipset
 ccflags-y += -Idrivers/staging/unisys/common-spar/include
 ccflags-y += -Idrivers/staging/unisys/common-spar/include/channels
diff --git a/drivers/staging/unisys/visorbus/globals.h b/drivers/staging/unisys/visorbus/globals.h
new file mode 100644 (file)
index 0000000..0ed8e1d
--- /dev/null
@@ -0,0 +1,27 @@
+/* globals.h
+ *
+ * Copyright (C) 2010 - 2013 UNISYS CORPORATION
+ * All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or (at
+ * your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
+ * NON INFRINGEMENT.  See the GNU General Public License for more
+ * details.
+ */
+
+#ifndef __VISORCHANNEL_GLOBALS_H__
+#define __VISORCHANNEL_GLOBALS_H__
+
+#include "timskmod.h"
+#include "memregion.h"
+#include "version.h"
+
+#define MYDRVNAME "visorchannel"
+
+#endif
index b03bfc5c3043f1cf15fd8b5094b1150e1fca769e..2030592d202358e632c616dd8a54e7a7f49564fa 100644 (file)
@@ -6,6 +6,7 @@ config UNISYS_VISORCHIPSET
        tristate "Unisys visorchipset driver"
        select UNISYS_VISORUTIL
        select UNISYS_VISORCHANNEL
+       select UNISYS_VISORBUS
        ---help---
        If you say Y here, you will enable the Unisys visorchipset driver.
 
index 12686906bef3d5c54ed0228e120d02f0636e1a8b..1bf6699579eccc798abe5a7af29faad81ce0bc83 100644 (file)
@@ -8,8 +8,8 @@ visorchipset-y := visorchipset_main.o file.o parser.o
 
 ccflags-y += -Idrivers/staging/unisys/include
 ccflags-y += -Idrivers/staging/unisys/uislib
-ccflags-y += -Idrivers/staging/unisys/visorchannel
 ccflags-y += -Idrivers/staging/unisys/common-spar/include
 ccflags-y += -Idrivers/staging/unisys/common-spar/include/channels
 ccflags-y += -Idrivers/staging/unisys/visorutil
+ccflags-y += -Idrivers/staging/unisys/visorbus
 ccflags-y += -Iinclude/generated