Commit 04ac01ca authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

Staging: slicoss: remove LINUX_FREES_ADAPTER_RESOURCES

It was always enabled, so just enable it and take out the one place it
was being used.

Cc: Lior Dotan <liodot@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 0fba1a95
...@@ -61,7 +61,6 @@ ...@@ -61,7 +61,6 @@
#define SLIC_ASSERT_ENABLED 1 #define SLIC_ASSERT_ENABLED 1
#define SLIC_PING_TIMER_ENABLED 1 #define SLIC_PING_TIMER_ENABLED 1
#define SLIC_INTERRUPT_PROCESS_LIMIT 1 #define SLIC_INTERRUPT_PROCESS_LIMIT 1
#define LINUX_FREES_ADAPTER_RESOURCES 1
#define SLIC_OFFLOAD_IP_CHECKSUM 1 #define SLIC_OFFLOAD_IP_CHECKSUM 1
#define STATS_TIMER_INTERVAL 2 #define STATS_TIMER_INTERVAL 2
#define PING_TIMER_INTERVAL 1 #define PING_TIMER_INTERVAL 1
...@@ -1787,11 +1786,9 @@ static int slic_if_init(struct adapter *adapter) ...@@ -1787,11 +1786,9 @@ static int slic_if_init(struct adapter *adapter)
static void slic_unmap_mmio_space(struct adapter *adapter) static void slic_unmap_mmio_space(struct adapter *adapter)
{ {
#if LINUX_FREES_ADAPTER_RESOURCES
if (adapter->slic_regs) if (adapter->slic_regs)
iounmap(adapter->slic_regs); iounmap(adapter->slic_regs);
adapter->slic_regs = NULL; adapter->slic_regs = NULL;
#endif
} }
static int slic_adapter_allocresources(struct adapter *adapter) static int slic_adapter_allocresources(struct adapter *adapter)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment