soc: qcom: hab: change device class name from habdev to hab
The current udev rule of LV HAB is KERNEL=="hab",SUBSYSTEM=="hab", MODE="0666" The subsystem name of the event device is the class name when creating the char device. In order to be compatible with the default hab udev rules, we need to keep the class name of char devices unchanged. The current ueventd config of LA HAB is /dev/hab 0666 system system Therefore this change has no impact on LA. Change-Id: Ic9df04b792f97e36454ef4a2ddfef6dfd66ad3c4 Signed-off-by: Zelong Ren <quic_zeloren@quicinc.com>
This commit is contained in:
parent
87d8a7f1f9
commit
8c2be5bc61
@ -461,7 +461,7 @@ static int __init hab_init(void)
|
||||
pr_debug("init start, ver %X\n", HAB_API_VER);
|
||||
|
||||
/* prepare resources for creating hab char devices */
|
||||
result = alloc_chrdev_region(&dev_no, 0, CDEV_NUM_MAX, "habdev");
|
||||
result = alloc_chrdev_region(&dev_no, 0, CDEV_NUM_MAX, "hab");
|
||||
|
||||
if (result < 0) {
|
||||
pr_err("alloc_chrdev_region failed: %d\n", result);
|
||||
@ -478,7 +478,7 @@ static int __init hab_init(void)
|
||||
if (!hab_driver.cdev)
|
||||
goto cdev_alloc_fail;
|
||||
|
||||
hab_driver.class = class_create(THIS_MODULE, "habdev");
|
||||
hab_driver.class = class_create(THIS_MODULE, "hab");
|
||||
|
||||
if (IS_ERR(hab_driver.class)) {
|
||||
result = PTR_ERR(hab_driver.class);
|
||||
|
Loading…
Reference in New Issue
Block a user