Staging: unisys: Remove ultra_vbus_init_channel function
authorKen Cox <jkc@redhat.com>
Thu, 3 Jul 2014 15:02:17 +0000 (10:02 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Jul 2014 22:38:47 +0000 (15:38 -0700)
The function ultra_vbus_init_channel() is never called since
previous server code was removed.  Remove the dead code.

Signed-off-by: Ken Cox <jkc@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/common-spar/include/channels/vbuschannel.h

index 000182c..69de9d9 100644 (file)
@@ -94,42 +94,6 @@ typedef struct _ULTRA_VBUS_CHANNEL_PROTOCOL {
                                                sizeof(ULTRA_VBUS_DEVICEINFO)))
 #define VBUS_CH_SIZE(MAXDEVICES) COVER(VBUS_CH_SIZE_EXACT(MAXDEVICES), 4096)
 
-static inline void
-ultra_vbus_init_channel(ULTRA_VBUS_CHANNEL_PROTOCOL __iomem *x,
-                       int bytesAllocated)
-{
-       /* Please note that the memory at <x> does NOT necessarily have space
-       * for DevInfo structs allocated at the end, which is why we do NOT use
-       * <bytesAllocated> to clear. */
-       memset_io(x, 0, sizeof(ULTRA_VBUS_CHANNEL_PROTOCOL));
-       if (bytesAllocated < (int) sizeof(ULTRA_VBUS_CHANNEL_PROTOCOL))
-               return;
-       writel(ULTRA_VBUS_CHANNEL_PROTOCOL_VERSIONID,
-              &x->ChannelHeader.VersionId);
-       writeq(ULTRA_VBUS_CHANNEL_PROTOCOL_SIGNATURE,
-              &x->ChannelHeader.Signature);
-       writel(CHANNELSRV_READY, &x->ChannelHeader.SrvState);
-       writel(sizeof(x->ChannelHeader), &x->ChannelHeader.HeaderSize);
-       writeq(bytesAllocated, &x->ChannelHeader.Size);
-       memcpy_toio(&x->ChannelHeader.Type, &UltraVbusChannelProtocolGuid,
-                   sizeof(x->ChannelHeader.Type));
-       memcpy_toio(&x->ChannelHeader.ZoneGuid, &NULL_UUID_LE, sizeof(uuid_le));
-       writel(sizeof(ULTRA_VBUS_HEADERINFO), &x->HdrInfo.structBytes);
-       writel(sizeof(ULTRA_VBUS_HEADERINFO), &x->HdrInfo.chpInfoByteOffset);
-       writel(readl(&x->HdrInfo.chpInfoByteOffset) +
-              sizeof(ULTRA_VBUS_DEVICEINFO),
-              &x->HdrInfo.busInfoByteOffset);
-       writel(readl(&x->HdrInfo.busInfoByteOffset)
-              + sizeof(ULTRA_VBUS_DEVICEINFO),
-              &x->HdrInfo.devInfoByteOffset);
-       writel(sizeof(ULTRA_VBUS_DEVICEINFO),
-              &x->HdrInfo.deviceInfoStructBytes);
-       bytesAllocated -= (sizeof(ULTRA_CHANNEL_PROTOCOL)
-                          + readl(&x->HdrInfo.devInfoByteOffset));
-       writel(bytesAllocated / readl(&x->HdrInfo.deviceInfoStructBytes),
-              &x->HdrInfo.devInfoCount);
-}
-
 #pragma pack(pop)
 
 #endif