media: ivsc: ace: remove name identifier
authorWentong Wu <wentong.wu@intel.com>
Tue, 29 Aug 2023 05:24:27 +0000 (13:24 +0800)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 27 Sep 2023 07:39:56 +0000 (09:39 +0200)
Remove name identifier to match the device with the
defined UUID when load driver module.

Signed-off-by: Wentong Wu <wentong.wu@intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/pci/intel/ivsc/mei_ace.c

index a0491f30783119a7fc04e10f6fdb592837956cad..d4ecc2b4a7f0712a4687c3f3ee0180bce53e0771 100644 (file)
@@ -30,8 +30,6 @@
 #include <linux/uuid.h>
 #include <linux/workqueue.h>
 
-#define        MEI_ACE_DRIVER_NAME     "ivsc_ace"
-
 /* indicating driver message */
 #define        ACE_DRV_MSG             1
 /* indicating set command */
@@ -554,14 +552,14 @@ static const struct dev_pm_ops mei_ace_pm_ops = {
                             0x9B, 0x78, 0x03, 0x61, 0x63, 0x5E, 0x24, 0x47)
 
 static const struct mei_cl_device_id mei_ace_tbl[] = {
-       { MEI_ACE_DRIVER_NAME, MEI_ACE_UUID, MEI_CL_VERSION_ANY },
+       { .uuid = MEI_ACE_UUID, .version = MEI_CL_VERSION_ANY },
        { /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(mei, mei_ace_tbl);
 
 static struct mei_cl_driver mei_ace_driver = {
        .id_table = mei_ace_tbl,
-       .name = MEI_ACE_DRIVER_NAME,
+       .name = KBUILD_MODNAME,
 
        .probe = mei_ace_probe,
        .remove = mei_ace_remove,