mirror of
				https://xff.cz/git/u-boot/
				synced 2025-10-31 10:26:10 +01:00 
			
		
		
		
	efi: Tidy up header includes
Two files relies on efi_driver.h to include common.h and dm.h which is incorrect. The former should always be included in a non-host C file and the latter should be included if driver model is used. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
		| @@ -8,8 +8,6 @@ | |||||||
| #ifndef _EFI_DRIVER_H | #ifndef _EFI_DRIVER_H | ||||||
| #define _EFI_DRIVER_H 1 | #define _EFI_DRIVER_H 1 | ||||||
|  |  | ||||||
| #include <common.h> |  | ||||||
| #include <dm.h> |  | ||||||
| #include <efi_loader.h> | #include <efi_loader.h> | ||||||
|  |  | ||||||
| /* | /* | ||||||
|   | |||||||
| @@ -30,6 +30,7 @@ | |||||||
|  |  | ||||||
| #include <common.h> | #include <common.h> | ||||||
| #include <blk.h> | #include <blk.h> | ||||||
|  | #include <dm.h> | ||||||
| #include <efi_driver.h> | #include <efi_driver.h> | ||||||
| #include <malloc.h> | #include <malloc.h> | ||||||
| #include <dm/device-internal.h> | #include <dm/device-internal.h> | ||||||
|   | |||||||
| @@ -17,6 +17,8 @@ | |||||||
|  * controllers. |  * controllers. | ||||||
|  */ |  */ | ||||||
|  |  | ||||||
|  | #include <common.h> | ||||||
|  | #include <dm.h> | ||||||
| #include <efi_driver.h> | #include <efi_driver.h> | ||||||
| #include <log.h> | #include <log.h> | ||||||
| #include <malloc.h> | #include <malloc.h> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user