]> git.baikalelectronics.ru Git - kernel.git/commit
staging: unisys: Move channel creation up the stack
authorDon Zickus <dzickus@redhat.com>
Mon, 1 Jun 2015 17:00:26 +0000 (13:00 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Jun 2015 05:22:49 +0000 (14:22 +0900)
commit2b0cac67c6050d89cdc73e28e4a6cd4dc4ef47e8
treed7e0ece324939142df24b05fd137d0c9a00e1893
parent69bea25f7ce09a352f60421ec618d525b708da57
staging: unisys: Move channel creation up the stack

Instead of creating a channel struct to temporarily hold the channel
info and passing it through multiple functions until the device is
created, just create the channel from the start.

This allows us to remove the channel_info struct.

I noticed 'chan_info.addr_type' was not being used, so I just deleted it.

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/visorbus/visorbus_main.c
drivers/staging/unisys/visorbus/visorbus_private.h
drivers/staging/unisys/visorbus/visorchipset.c