]> Git Repo - linux.git/blobdiff - drivers/xen/pcpu.c
dsa: mv88e6xxx: Include tagger overhead when setting MTU for DSA and CPU ports
[linux.git] / drivers / xen / pcpu.c
index 1bcdd52277716edebc9ad4e4807b87a5c181f715..47aa3a1ccaf5746a9a7eae7f1f8ab82d2065e33c 100644 (file)
@@ -92,7 +92,7 @@ static int xen_pcpu_up(uint32_t cpu_id)
        return HYPERVISOR_platform_op(&op);
 }
 
-static ssize_t show_online(struct device *dev,
+static ssize_t online_show(struct device *dev,
                           struct device_attribute *attr,
                           char *buf)
 {
@@ -101,7 +101,7 @@ static ssize_t show_online(struct device *dev,
        return sprintf(buf, "%u\n", !!(cpu->flags & XEN_PCPU_FLAGS_ONLINE));
 }
 
-static ssize_t __ref store_online(struct device *dev,
+static ssize_t __ref online_store(struct device *dev,
                                  struct device_attribute *attr,
                                  const char *buf, size_t count)
 {
@@ -130,7 +130,7 @@ static ssize_t __ref store_online(struct device *dev,
                ret = count;
        return ret;
 }
-static DEVICE_ATTR(online, S_IRUGO | S_IWUSR, show_online, store_online);
+static DEVICE_ATTR_RW(online);
 
 static struct attribute *pcpu_dev_attrs[] = {
        &dev_attr_online.attr,
This page took 0.034158 seconds and 4 git commands to generate.