kernel: move drivers to own file
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
5d9e62e4a9
commit
b6c9e0a2ba
12 changed files with 83 additions and 22 deletions
8
include/kernel/driver.h
Normal file
8
include/kernel/driver.h
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
#ifndef _DRIVER_H_
|
||||
#define _DRIVER_H_
|
||||
|
||||
#define DRIVER_ENTRY(fn) static void (*__initcall_##fn)(void) __attribute((used, section(".initcall"))) = fn
|
||||
#define DRIVER_ENTRY_PRIORITY(fn, pr) static void (*__initcall_##fn)(void) __attribute((used, section(".initcall." #pr))) = fn
|
||||
|
||||
#endif /* _DRIVER_H_ */
|
||||
Loading…
Reference in a new issue