drivers: Use DEVICE_NOOP macro over dummy symbol

Change-Id: I931bd9c89bce6ac8f8e9e482a7876e2004abfb38
Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-on: http://review.coreboot.org/7284
Tested-by: build bot (Jenkins)
Reviewed-by: Bruce Griffith <Bruce.Griffith@se-eng.com>
This commit is contained in:
Edward O'Callaghan 2014-10-31 07:55:45 +11:00
parent 530355d41b
commit 524625d4e0
11 changed files with 35 additions and 79 deletions

View File

@ -44,14 +44,10 @@ static void adm1026_init(struct device *dev)
}
}
static void adm1026_noop(struct device *dummy)
{
}
static struct device_operations adm1026_operations = {
.read_resources = adm1026_noop,
.set_resources = adm1026_noop,
.enable_resources = adm1026_noop,
.read_resources = DEVICE_NOOP,
.set_resources = DEVICE_NOOP,
.enable_resources = DEVICE_NOOP,
.init = adm1026_init,
};

View File

@ -50,14 +50,10 @@ static void adm1027_init(struct device *dev)
}
}
static void adm1027_noop(struct device *dummy)
{
}
static struct device_operations adm1027_operations = {
.read_resources = adm1027_noop,
.set_resources = adm1027_noop,
.enable_resources = adm1027_noop,
.read_resources = DEVICE_NOOP,
.set_resources = DEVICE_NOOP,
.enable_resources = DEVICE_NOOP,
.init = adm1027_init,
};

View File

@ -85,14 +85,10 @@ static void adt7463_init(struct device *adt7463)
printk(BIOS_DEBUG, "ADT7463 properly initialized\n");
}
static void adt7463_noop(struct device *dummy)
{
}
static struct device_operations adt7463_operations = {
.read_resources = adt7463_noop,
.set_resources = adt7463_noop,
.enable_resources = adt7463_noop,
.read_resources = DEVICE_NOOP,
.set_resources = DEVICE_NOOP,
.enable_resources = DEVICE_NOOP,
.init = adt7463_init,
};

View File

@ -52,14 +52,10 @@ static void at24rf08c_init(struct device *dev)
printk (BIOS_DEBUG, "init EEPROM done\n");
}
static void at24rf08c_noop(struct device *dummy)
{
}
static struct device_operations at24rf08c_operations = {
.read_resources = at24rf08c_noop,
.set_resources = at24rf08c_noop,
.enable_resources = at24rf08c_noop,
.read_resources = DEVICE_NOOP,
.set_resources = DEVICE_NOOP,
.enable_resources = DEVICE_NOOP,
.init = at24rf08c_init,
};

View File

@ -16,15 +16,11 @@ static void i2cmux_set_link(struct device *dev, unsigned int link)
}
}
static void i2cmux_noop(struct device *dummy)
{
}
static struct device_operations i2cmux_operations = {
.read_resources = i2cmux_noop,
.set_resources = i2cmux_noop,
.enable_resources = i2cmux_noop,
.init = i2cmux_noop,
.read_resources = DEVICE_NOOP,
.set_resources = DEVICE_NOOP,
.enable_resources = DEVICE_NOOP,
.init = DEVICE_NOOP,
.scan_bus = scan_static_bus,
.set_link = i2cmux_set_link,
};

View File

@ -15,15 +15,11 @@ static void i2cmux2_set_link(struct device *dev, unsigned int link)
}
}
static void i2cmux2_noop(struct device *dummy)
{
}
static struct device_operations i2cmux2_operations = {
.read_resources = i2cmux2_noop,
.set_resources = i2cmux2_noop,
.enable_resources = i2cmux2_noop,
.init = i2cmux2_noop,
.read_resources = DEVICE_NOOP,
.set_resources = DEVICE_NOOP,
.enable_resources = DEVICE_NOOP,
.init = DEVICE_NOOP,
.scan_bus = scan_static_bus,
.set_link = i2cmux2_set_link,
};

View File

@ -21,14 +21,10 @@ static void lm63_init(struct device *dev)
}
}
static void lm63_noop(struct device *dummy)
{
}
static struct device_operations lm63_operations = {
.read_resources = lm63_noop,
.set_resources = lm63_noop,
.enable_resources = lm63_noop,
.read_resources = DEVICE_NOOP,
.set_resources = DEVICE_NOOP,
.enable_resources = DEVICE_NOOP,
.init = lm63_init,
};

View File

@ -241,14 +241,10 @@ static void rtd2132_init(struct device *dev)
}
}
static void rtd2132_noop(struct device *dummy)
{
}
static struct device_operations rtd2132_operations = {
.read_resources = rtd2132_noop,
.set_resources = rtd2132_noop,
.enable_resources = rtd2132_noop,
.read_resources = DEVICE_NOOP,
.set_resources = DEVICE_NOOP,
.enable_resources = DEVICE_NOOP,
.init = rtd2132_init,
};

View File

@ -220,14 +220,10 @@ static void w83793_init(struct device *dev)
}
static void w83793_noop(struct device *dummy)
{
}
static struct device_operations w83793_operations = {
.read_resources = w83793_noop,
.set_resources = w83793_noop,
.enable_resources = w83793_noop,
.read_resources = DEVICE_NOOP,
.set_resources = DEVICE_NOOP,
.enable_resources = DEVICE_NOOP,
.init = w83793_init,
};

View File

@ -239,14 +239,10 @@ static void w83795_hwm_init(struct device *dev)
printk(BIOS_ERR, "Neither AMD nor INTEL CPU detected\n");
}
static void w83795_noop(struct device *dummy)
{
}
static struct device_operations w83795_operations = {
.read_resources = w83795_noop,
.set_resources = w83795_noop,
.enable_resources = w83795_noop,
.read_resources = DEVICE_NOOP,
.set_resources = DEVICE_NOOP,
.enable_resources = DEVICE_NOOP,
.init = w83795_hwm_init,
};

View File

@ -55,14 +55,10 @@ static void ics954309_init(struct device *dev)
smbus_block_write(dev, 0, 12, initdata);
}
static void ics954309_noop(struct device *dummy)
{
}
static struct device_operations ics954309_operations = {
.read_resources = ics954309_noop,
.set_resources = ics954309_noop,
.enable_resources = ics954309_noop,
.read_resources = DEVICE_NOOP,
.set_resources = DEVICE_NOOP,
.enable_resources = DEVICE_NOOP,
.init = ics954309_init,
};