]> Git Repo - linux.git/blobdiff - drivers/firmware/google/coreboot_table.c
x86/kaslr: Expose and use the end of the physical memory address space
[linux.git] / drivers / firmware / google / coreboot_table.c
index a4e3bbd556a3bf24db4d15a2b15726f0da34bc40..208652a8087cd2463f8b52e155e4fbb96f484944 100644 (file)
 #include "coreboot_table.h"
 
 #define CB_DEV(d) container_of(d, struct coreboot_device, dev)
-#define CB_DRV(d) container_of(d, struct coreboot_driver, drv)
+#define CB_DRV(d) container_of_const(d, struct coreboot_driver, drv)
 
-static int coreboot_bus_match(struct device *dev, struct device_driver *drv)
+static int coreboot_bus_match(struct device *dev, const struct device_driver *drv)
 {
        struct coreboot_device *device = CB_DEV(dev);
-       struct coreboot_driver *driver = CB_DRV(drv);
+       const struct coreboot_driver *driver = CB_DRV(drv);
        const struct coreboot_device_id *id;
 
        if (!driver->id_table)
This page took 0.034458 seconds and 4 git commands to generate.