]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/s390/crypto/ap_card.c
treewide: Use DEVICE_ATTR_RO
[mirror_ubuntu-bionic-kernel.git] / drivers / s390 / crypto / ap_card.c
index 97a8cf578116ecd17b67e8cf544f3f1a228a66b3..2c726df210f664bff4ead0693310d9f48806a0e6 100644 (file)
@@ -57,7 +57,7 @@ static ssize_t ap_functions_show(struct device *dev,
        return snprintf(buf, PAGE_SIZE, "0x%08X\n", ac->functions);
 }
 
-static DEVICE_ATTR(ap_functions, 0444, ap_functions_show, NULL);
+static DEVICE_ATTR_RO(ap_functions);
 
 static ssize_t ap_req_count_show(struct device *dev,
                                 struct device_attribute *attr,