diff options
author | Samuel Holland <samuel@sholland.org> | 2018-01-24 19:41:16 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-04-23 13:37:19 +0200 |
commit | 570d30c2823fd4a29c220961885529bc36d27d24 (patch) | |
tree | 9e8e9f725ffe0d55420ffa7f52ec5fe682c841f3 /drivers/firmware/google/coreboot_table-of.c | |
parent | 093a89d4c21701e61025386a08a2d1ec5d97c805 (diff) |
firmware: coreboot: Expose the coreboot table as a bus
This simplifies creating device drivers for hardware or information
described in the coreboot table. It also avoids needing to search
through the table every time a driver is loaded.
Signed-off-by: Samuel Holland <samuel@sholland.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/firmware/google/coreboot_table-of.c')
-rw-r--r-- | drivers/firmware/google/coreboot_table-of.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firmware/google/coreboot_table-of.c b/drivers/firmware/google/coreboot_table-of.c index 727acdc83e83..f15bf404c579 100644 --- a/drivers/firmware/google/coreboot_table-of.c +++ b/drivers/firmware/google/coreboot_table-of.c @@ -34,7 +34,7 @@ static int coreboot_table_of_probe(struct platform_device *pdev) if (!ptr) return -ENOMEM; - return coreboot_table_init(ptr); + return coreboot_table_init(&pdev->dev, ptr); } static int coreboot_table_of_remove(struct platform_device *pdev) |