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:
parent
530355d41b
commit
524625d4e0
|
@ -44,14 +44,10 @@ static void adm1026_init(struct device *dev)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void adm1026_noop(struct device *dummy)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
static struct device_operations adm1026_operations = {
|
static struct device_operations adm1026_operations = {
|
||||||
.read_resources = adm1026_noop,
|
.read_resources = DEVICE_NOOP,
|
||||||
.set_resources = adm1026_noop,
|
.set_resources = DEVICE_NOOP,
|
||||||
.enable_resources = adm1026_noop,
|
.enable_resources = DEVICE_NOOP,
|
||||||
.init = adm1026_init,
|
.init = adm1026_init,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -50,14 +50,10 @@ static void adm1027_init(struct device *dev)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void adm1027_noop(struct device *dummy)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
static struct device_operations adm1027_operations = {
|
static struct device_operations adm1027_operations = {
|
||||||
.read_resources = adm1027_noop,
|
.read_resources = DEVICE_NOOP,
|
||||||
.set_resources = adm1027_noop,
|
.set_resources = DEVICE_NOOP,
|
||||||
.enable_resources = adm1027_noop,
|
.enable_resources = DEVICE_NOOP,
|
||||||
.init = adm1027_init,
|
.init = adm1027_init,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -85,14 +85,10 @@ static void adt7463_init(struct device *adt7463)
|
||||||
printk(BIOS_DEBUG, "ADT7463 properly initialized\n");
|
printk(BIOS_DEBUG, "ADT7463 properly initialized\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void adt7463_noop(struct device *dummy)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
static struct device_operations adt7463_operations = {
|
static struct device_operations adt7463_operations = {
|
||||||
.read_resources = adt7463_noop,
|
.read_resources = DEVICE_NOOP,
|
||||||
.set_resources = adt7463_noop,
|
.set_resources = DEVICE_NOOP,
|
||||||
.enable_resources = adt7463_noop,
|
.enable_resources = DEVICE_NOOP,
|
||||||
.init = adt7463_init,
|
.init = adt7463_init,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -52,14 +52,10 @@ static void at24rf08c_init(struct device *dev)
|
||||||
printk (BIOS_DEBUG, "init EEPROM done\n");
|
printk (BIOS_DEBUG, "init EEPROM done\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void at24rf08c_noop(struct device *dummy)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
static struct device_operations at24rf08c_operations = {
|
static struct device_operations at24rf08c_operations = {
|
||||||
.read_resources = at24rf08c_noop,
|
.read_resources = DEVICE_NOOP,
|
||||||
.set_resources = at24rf08c_noop,
|
.set_resources = DEVICE_NOOP,
|
||||||
.enable_resources = at24rf08c_noop,
|
.enable_resources = DEVICE_NOOP,
|
||||||
.init = at24rf08c_init,
|
.init = at24rf08c_init,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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 = {
|
static struct device_operations i2cmux_operations = {
|
||||||
.read_resources = i2cmux_noop,
|
.read_resources = DEVICE_NOOP,
|
||||||
.set_resources = i2cmux_noop,
|
.set_resources = DEVICE_NOOP,
|
||||||
.enable_resources = i2cmux_noop,
|
.enable_resources = DEVICE_NOOP,
|
||||||
.init = i2cmux_noop,
|
.init = DEVICE_NOOP,
|
||||||
.scan_bus = scan_static_bus,
|
.scan_bus = scan_static_bus,
|
||||||
.set_link = i2cmux_set_link,
|
.set_link = i2cmux_set_link,
|
||||||
};
|
};
|
||||||
|
|
|
@ -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 = {
|
static struct device_operations i2cmux2_operations = {
|
||||||
.read_resources = i2cmux2_noop,
|
.read_resources = DEVICE_NOOP,
|
||||||
.set_resources = i2cmux2_noop,
|
.set_resources = DEVICE_NOOP,
|
||||||
.enable_resources = i2cmux2_noop,
|
.enable_resources = DEVICE_NOOP,
|
||||||
.init = i2cmux2_noop,
|
.init = DEVICE_NOOP,
|
||||||
.scan_bus = scan_static_bus,
|
.scan_bus = scan_static_bus,
|
||||||
.set_link = i2cmux2_set_link,
|
.set_link = i2cmux2_set_link,
|
||||||
};
|
};
|
||||||
|
|
|
@ -21,14 +21,10 @@ static void lm63_init(struct device *dev)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void lm63_noop(struct device *dummy)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
static struct device_operations lm63_operations = {
|
static struct device_operations lm63_operations = {
|
||||||
.read_resources = lm63_noop,
|
.read_resources = DEVICE_NOOP,
|
||||||
.set_resources = lm63_noop,
|
.set_resources = DEVICE_NOOP,
|
||||||
.enable_resources = lm63_noop,
|
.enable_resources = DEVICE_NOOP,
|
||||||
.init = lm63_init,
|
.init = lm63_init,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -241,14 +241,10 @@ static void rtd2132_init(struct device *dev)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void rtd2132_noop(struct device *dummy)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
static struct device_operations rtd2132_operations = {
|
static struct device_operations rtd2132_operations = {
|
||||||
.read_resources = rtd2132_noop,
|
.read_resources = DEVICE_NOOP,
|
||||||
.set_resources = rtd2132_noop,
|
.set_resources = DEVICE_NOOP,
|
||||||
.enable_resources = rtd2132_noop,
|
.enable_resources = DEVICE_NOOP,
|
||||||
.init = rtd2132_init,
|
.init = rtd2132_init,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -220,14 +220,10 @@ static void w83793_init(struct device *dev)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void w83793_noop(struct device *dummy)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
static struct device_operations w83793_operations = {
|
static struct device_operations w83793_operations = {
|
||||||
.read_resources = w83793_noop,
|
.read_resources = DEVICE_NOOP,
|
||||||
.set_resources = w83793_noop,
|
.set_resources = DEVICE_NOOP,
|
||||||
.enable_resources = w83793_noop,
|
.enable_resources = DEVICE_NOOP,
|
||||||
.init = w83793_init,
|
.init = w83793_init,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -239,14 +239,10 @@ static void w83795_hwm_init(struct device *dev)
|
||||||
printk(BIOS_ERR, "Neither AMD nor INTEL CPU detected\n");
|
printk(BIOS_ERR, "Neither AMD nor INTEL CPU detected\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void w83795_noop(struct device *dummy)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
static struct device_operations w83795_operations = {
|
static struct device_operations w83795_operations = {
|
||||||
.read_resources = w83795_noop,
|
.read_resources = DEVICE_NOOP,
|
||||||
.set_resources = w83795_noop,
|
.set_resources = DEVICE_NOOP,
|
||||||
.enable_resources = w83795_noop,
|
.enable_resources = DEVICE_NOOP,
|
||||||
.init = w83795_hwm_init,
|
.init = w83795_hwm_init,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -55,14 +55,10 @@ static void ics954309_init(struct device *dev)
|
||||||
smbus_block_write(dev, 0, 12, initdata);
|
smbus_block_write(dev, 0, 12, initdata);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ics954309_noop(struct device *dummy)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
static struct device_operations ics954309_operations = {
|
static struct device_operations ics954309_operations = {
|
||||||
.read_resources = ics954309_noop,
|
.read_resources = DEVICE_NOOP,
|
||||||
.set_resources = ics954309_noop,
|
.set_resources = DEVICE_NOOP,
|
||||||
.enable_resources = ics954309_noop,
|
.enable_resources = DEVICE_NOOP,
|
||||||
.init = ics954309_init,
|
.init = ics954309_init,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue