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

@ -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,
};