Commit ab3d8e1
tee: replace cdev_add + device_add with cdev_device_add
Commit 233ed09 ("chardev: add helper function to register char devs
with a struct device") added a helper function 'cdev_device_add'.
Make use of cdev_device_add in tee_device_register to replace cdev_add
and device_add. Since cdev_device_add takes care of setting the
kobj->parent, drop explicit initialisation in tee_device_alloc.
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>1 parent 9123e3a commit ab3d8e1
1 file changed
Lines changed: 4 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
917 | 917 | | |
918 | 918 | | |
919 | 919 | | |
920 | | - | |
921 | 920 | | |
922 | 921 | | |
923 | 922 | | |
| |||
985 | 984 | | |
986 | 985 | | |
987 | 986 | | |
988 | | - | |
| 987 | + | |
989 | 988 | | |
990 | 989 | | |
991 | | - | |
| 990 | + | |
992 | 991 | | |
993 | 992 | | |
994 | 993 | | |
995 | 994 | | |
996 | 995 | | |
997 | | - | |
998 | | - | |
999 | | - | |
1000 | | - | |
1001 | | - | |
1002 | | - | |
1003 | | - | |
1004 | | - | |
1005 | | - | |
1006 | 996 | | |
1007 | 997 | | |
1008 | 998 | | |
| |||
1014 | 1004 | | |
1015 | 1005 | | |
1016 | 1006 | | |
1017 | | - | |
1018 | | - | |
1019 | | - | |
| 1007 | + | |
1020 | 1008 | | |
1021 | 1009 | | |
1022 | 1010 | | |
| |||
1062 | 1050 | | |
1063 | 1051 | | |
1064 | 1052 | | |
1065 | | - | |
1066 | | - | |
| 1053 | + | |
1067 | 1054 | | |
1068 | 1055 | | |
1069 | 1056 | | |
| |||
0 commit comments