Skip to content
Snippets Groups Projects
Commit 336d4615 authored by Simon Glass's avatar Simon Glass
Browse files

dm: core: Create a new header file for 'compat' features


At present dm/device.h includes the linux-compatible features. This
requires including linux/compat.h which in turn includes a lot of headers.
One of these is malloc.h which we thus end up including in every file in
U-Boot. Apart from the inefficiency of this, it is problematic for sandbox
which needs to use the system malloc() in some files.

Move the compatibility features into a separate header file.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent 61b29b82
No related branches found
No related tags found
Loading
Showing
with 20 additions and 0 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment