Commit 29a06a77 authored by Colin Ian King's avatar Colin Ian King Committed by David S. Miller

mlxsw: remove unused arrays mlxsw_i2c_driver_name and mlxsw_pci_driver_name

Arrays mlxsw_i2c_driver_name and mlxsw_pci_driver_name are defined
but never used hence they are redundant and can be removed.

Cleans up clang warnings:
warning: 'mlxsw_i2c_driver_name' defined but not used
warning: 'mlxsw_pci_driver_name' defined but not used
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Reviewed-by: default avatarIdo Schimmel <idosch@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c9fbb2d2
...@@ -15,8 +15,6 @@ ...@@ -15,8 +15,6 @@
#include "core.h" #include "core.h"
#include "i2c.h" #include "i2c.h"
static const char mlxsw_i2c_driver_name[] = "mlxsw_i2c";
#define MLXSW_I2C_CIR2_BASE 0x72000 #define MLXSW_I2C_CIR2_BASE 0x72000
#define MLXSW_I2C_CIR_STATUS_OFF 0x18 #define MLXSW_I2C_CIR_STATUS_OFF 0x18
#define MLXSW_I2C_CIR2_OFF_STATUS (MLXSW_I2C_CIR2_BASE + \ #define MLXSW_I2C_CIR2_OFF_STATUS (MLXSW_I2C_CIR2_BASE + \
......
...@@ -22,8 +22,6 @@ ...@@ -22,8 +22,6 @@
#include "port.h" #include "port.h"
#include "resources.h" #include "resources.h"
static const char mlxsw_pci_driver_name[] = "mlxsw_pci";
#define mlxsw_pci_write32(mlxsw_pci, reg, val) \ #define mlxsw_pci_write32(mlxsw_pci, reg, val) \
iowrite32be(val, (mlxsw_pci)->hw_addr + (MLXSW_PCI_ ## reg)) iowrite32be(val, (mlxsw_pci)->hw_addr + (MLXSW_PCI_ ## reg))
#define mlxsw_pci_read32(mlxsw_pci, reg) \ #define mlxsw_pci_read32(mlxsw_pci, reg) \
......
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