// SPDX-License-Identifier: GPL-2.0+ /* * Compaq Hot Plug Controller Driver * * Copyright (c) 1995,2001 Compaq Computer Corporation * Copyright (c) 2001,2003 Greg Kroah-Hartman ([email protected]) * Copyright (c) 2001 IBM Corp. * * All rights reserved. * * Send feedback to <[email protected]> * */ #include <linux/module.h> #include <linux/kernel.h> #include <linux/types.h> #include <linux/pci.h> #include "shpchp.h" /* A few routines that create sysfs entries for the hot plug controller */ static ssize_t show_ctrl(struct device *dev, struct device_attribute *attr, char *buf) { … } static DEVICE_ATTR(ctrl, S_IRUGO, show_ctrl, NULL); int shpchp_create_ctrl_files(struct controller *ctrl) { … } void shpchp_remove_ctrl_files(struct controller *ctrl) { … }