dt_fstab_fake: fake android,firmware compatibility
* We have literally no dt, so we need to at least fake the fact that we support this sort of thing... Change-Id: Ic508f27ffc67a8d9699a2e9fe6795d8bdecb9aeb
This commit is contained in:
parent
74d0f8654c
commit
568d9948b9
|
@ -82,12 +82,19 @@ DT_REMOVE("device-tree/firmware/android/fstab/"#_name"/compatible") \
|
|||
DT_REMOVE("device-tree/firmware/android/fstab/"#_name)
|
||||
|
||||
// Setup basic hierarchy
|
||||
DT_FILE_INIT(android_compatible, "android,firmware")
|
||||
DT_FILE_INIT(android_name, "android")
|
||||
DT_FILE_INIT(fstab_compatible, "android,fstab")
|
||||
DT_FILE_INIT(fstab_name, "fstab")
|
||||
|
||||
static int __init dt_fstab_proc_init(void)
|
||||
{
|
||||
// Setup basic hierarchy
|
||||
DT_DIR_CREATE("device-tree")
|
||||
DT_DIR_CREATE("device-tree/firmware")
|
||||
DT_DIR_CREATE("device-tree/firmware/android")
|
||||
DT_FILE_CREATE(android_compatible, "device-tree/firmware/android/compatible")
|
||||
DT_FILE_CREATE(android_name, "device-tree/firmware/android/name")
|
||||
DT_DIR_CREATE("device-tree/firmware/android/fstab")
|
||||
DT_FILE_CREATE(fstab_compatible, "device-tree/firmware/android/fstab/compatible")
|
||||
DT_FILE_CREATE(fstab_name, "device-tree/firmware/android/fstab/name")
|
||||
|
@ -98,6 +105,8 @@ static int __init dt_fstab_proc_init(void)
|
|||
static void __exit dt_fstab_proc_exit(void)
|
||||
{
|
||||
// Cleanup basic hierarchy
|
||||
DT_REMOVE("device-tree/firmware/android/compatible")
|
||||
DT_REMOVE("device-tree/firmware/android/name")
|
||||
DT_REMOVE("device-tree/firmware/android/fstab/name")
|
||||
DT_REMOVE("device-tree/firmware/android/fstab/compatible")
|
||||
DT_REMOVE("device-tree/firmware/android/fstab")
|
||||
|
|
Loading…
Reference in New Issue