8 lines
344 B
C
8 lines
344 B
C
/* 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_ */
|