dmaengine: idxd: constify the struct device_type usage
[linux-2.6-microblaze.git] / drivers / dma / idxd / cdev.c
index 77f8885..72bb982 100644 (file)
@@ -152,7 +152,7 @@ static void idxd_file_dev_release(struct device *dev)
        mutex_unlock(&wq->wq_lock);
 }
 
-static struct device_type idxd_cdev_file_type = {
+static const struct device_type idxd_cdev_file_type = {
        .name = "idxd_file",
        .release = idxd_file_dev_release,
        .groups = cdev_file_attribute_groups,
@@ -169,7 +169,7 @@ static void idxd_cdev_dev_release(struct device *dev)
        kfree(idxd_cdev);
 }
 
-static struct device_type idxd_cdev_device_type = {
+static const struct device_type idxd_cdev_device_type = {
        .name = "idxd_cdev",
        .release = idxd_cdev_dev_release,
 };