Commit 5746b3b
committed
Merge tag 'tee-dev-cleanup-for-v5.10' of git://git.linaro.org:/people/jens.wiklander/linux-tee into arm/drivers
Simplify tee_device_register() and friends
Uses cdev_device_add() instead of the cdev_add() device_add()
combination.
Initializes dev->groups instead of direct calls to sysfs_create_group()
and friends.
* tag 'tee-dev-cleanup-for-v5.10' of git://git.linaro.org:/people/jens.wiklander/linux-tee:
tee: avoid explicit sysfs_create/delete_group by initialising dev->groups
tee: replace cdev_add + device_add with cdev_device_add
Link: https://lore.kernel.org/r/20200918144130.GB1219771@jade
Signed-off-by: Olof Johansson <olof@lixom.net>1 file changed
Lines changed: 7 additions & 33 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
930 | 930 | | |
931 | 931 | | |
932 | 932 | | |
933 | | - | |
934 | 933 | | |
935 | 934 | | |
936 | 935 | | |
| |||
976 | 975 | | |
977 | 976 | | |
978 | 977 | | |
979 | | - | |
980 | | - | |
981 | | - | |
| 978 | + | |
982 | 979 | | |
983 | 980 | | |
984 | 981 | | |
| |||
998 | 995 | | |
999 | 996 | | |
1000 | 997 | | |
1001 | | - | |
1002 | | - | |
1003 | | - | |
1004 | | - | |
1005 | | - | |
1006 | | - | |
1007 | | - | |
1008 | | - | |
| 998 | + | |
1009 | 999 | | |
1010 | | - | |
| 1000 | + | |
1011 | 1001 | | |
1012 | 1002 | | |
1013 | | - | |
| 1003 | + | |
1014 | 1004 | | |
1015 | 1005 | | |
1016 | | - | |
1017 | | - | |
1018 | | - | |
1019 | | - | |
1020 | | - | |
1021 | | - | |
1022 | | - | |
1023 | | - | |
| 1006 | + | |
1024 | 1007 | | |
1025 | 1008 | | |
1026 | 1009 | | |
1027 | 1010 | | |
1028 | | - | |
1029 | | - | |
1030 | | - | |
1031 | | - | |
1032 | | - | |
1033 | | - | |
1034 | 1011 | | |
1035 | 1012 | | |
1036 | 1013 | | |
| |||
1073 | 1050 | | |
1074 | 1051 | | |
1075 | 1052 | | |
1076 | | - | |
1077 | | - | |
1078 | | - | |
1079 | | - | |
1080 | | - | |
| 1053 | + | |
| 1054 | + | |
1081 | 1055 | | |
1082 | 1056 | | |
1083 | 1057 | | |
| |||
0 commit comments