[PATCH] efi: make sure efi-fs is started in the right order

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Michael Olbrich <m.olbrich@xxxxxxxxxxxxxx>

with this parch, EFI System partition will be mounted to /boot
instead of /mnt/diskXX.

Signed-off-by: Michael Olbrich <m.olbrich@xxxxxxxxxxxxxx>
Signed-off-by: Oleksij Rempel <o.rempel@xxxxxxxxxxxxxx>
---
 fs/efi.c                 | 2 +-
 include/efi/efi-device.h | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/fs/efi.c b/fs/efi.c
index 85ff91429..692556b26 100644
--- a/fs/efi.c
+++ b/fs/efi.c
@@ -558,4 +558,4 @@ static struct efi_driver efi_fs_driver = {
         .probe = efi_fs_probe,
 	.guid = EFI_SIMPLE_FILE_SYSTEM_PROTOCOL_GUID,
 };
-device_efi_driver(efi_fs_driver);
+fs_efi_driver(efi_fs_driver);
diff --git a/include/efi/efi-device.h b/include/efi/efi-device.h
index 8f5f1f3f1..15c293bb1 100644
--- a/include/efi/efi-device.h
+++ b/include/efi/efi-device.h
@@ -33,6 +33,8 @@ static inline struct efi_driver *to_efi_driver(struct driver_d *drv)
 #define device_efi_driver(drv)	\
 	register_driver_macro(device, efi, drv)
 
+#define fs_efi_driver(drv)	\
+	register_driver_macro(fs, efi, drv)
 static inline int efi_driver_register(struct efi_driver *efidrv)
 {
 	efidrv->driver.bus = &efi_bus;
-- 
2.11.0


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux