-static ssize_t location_read_file (struct hotplug_slot *php_slot, char *buf)
-{
- char *value;
- int retval = -ENOENT;
- struct slot *slot = (struct slot *)php_slot->private;
-
- if (!slot)
- return retval;
-
- value = slot->location;
- retval = sprintf (buf, "%s\n", value);
- return retval;
-}
-
-static struct hotplug_slot_attribute php_attr_location = {
- .attr = {.name = "phy_location", .mode = S_IFREG | S_IRUGO},
- .show = location_read_file,
-};
-