提交 da5a11d7 编写于 作者: D Dave Jiang 提交者: Vinod Koul

dmaengine: idxd: add driver name

Add name field in idxd_device_driver so we don't have to touch the
'struct device_driver' during declaration.
Reviewed-by: NDan Williams <dan.j.williams@intel.com>
Signed-off-by: NDave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/162637459517.744545.7572915135318813722.stgit@djiang5-desk3.ch.intel.comSigned-off-by: NVinod Koul <vkoul@kernel.org>
上级 3ecfc913
......@@ -34,6 +34,7 @@ enum idxd_type {
#define IDXD_PMU_EVENT_MAX 64
struct idxd_device_driver {
const char *name;
struct device_driver drv;
};
......
......@@ -861,6 +861,7 @@ int __idxd_driver_register(struct idxd_device_driver *idxd_drv, struct module *o
{
struct device_driver *drv = &idxd_drv->drv;
drv->name = idxd_drv->name;
drv->bus = &dsa_bus_type;
drv->owner = owner;
drv->mod_name = mod_name;
......
......@@ -311,9 +311,7 @@ struct bus_type dsa_bus_type = {
};
static struct idxd_device_driver dsa_drv = {
.drv = {
.name = "dsa",
},
.name = "dsa",
};
/* IDXD generic driver setup */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册