mirror of
https://github.com/adulau/aha.git
synced 2025-01-04 07:03:38 +00:00
PCI Hotplug: cleanup pcihp skeleton code.
Cleanup pcihp skeleton code. Fix some typos and remove some unnecessary blank lines. Signed-off-by: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
b56a5a23bf
commit
753388c2e9
1 changed files with 3 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* PCI Hot Plug Controller Skeleton Driver - 0.2
|
* PCI Hot Plug Controller Skeleton Driver - 0.3
|
||||||
*
|
*
|
||||||
* Copyright (C) 2001,2003 Greg Kroah-Hartman (greg@kroah.com)
|
* Copyright (C) 2001,2003 Greg Kroah-Hartman (greg@kroah.com)
|
||||||
* Copyright (C) 2001,2003 IBM Corp.
|
* Copyright (C) 2001,2003 IBM Corp.
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*
|
*
|
||||||
* This driver is to be used as a skeleton driver to be show how to interface
|
* This driver is to be used as a skeleton driver to show how to interface
|
||||||
* with the pci hotplug core easily.
|
* with the pci hotplug core easily.
|
||||||
*
|
*
|
||||||
* Send feedback to <greg@kroah.com>
|
* Send feedback to <greg@kroah.com>
|
||||||
|
@ -58,8 +58,6 @@ static LIST_HEAD(slot_list);
|
||||||
#define info(format, arg...) printk(KERN_INFO "%s: " format "\n", MY_NAME , ## arg)
|
#define info(format, arg...) printk(KERN_INFO "%s: " format "\n", MY_NAME , ## arg)
|
||||||
#define warn(format, arg...) printk(KERN_WARNING "%s: " format "\n", MY_NAME , ## arg)
|
#define warn(format, arg...) printk(KERN_WARNING "%s: " format "\n", MY_NAME , ## arg)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* local variables */
|
/* local variables */
|
||||||
static int debug;
|
static int debug;
|
||||||
static int num_slots;
|
static int num_slots;
|
||||||
|
@ -109,7 +107,6 @@ static int enable_slot(struct hotplug_slot *hotplug_slot)
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int disable_slot(struct hotplug_slot *hotplug_slot)
|
static int disable_slot(struct hotplug_slot *hotplug_slot)
|
||||||
{
|
{
|
||||||
struct slot *slot = hotplug_slot->private;
|
struct slot *slot = hotplug_slot->private;
|
||||||
|
@ -342,7 +339,7 @@ static int __init pcihp_skel_init(void)
|
||||||
info(DRIVER_DESC " version: " DRIVER_VERSION "\n");
|
info(DRIVER_DESC " version: " DRIVER_VERSION "\n");
|
||||||
/*
|
/*
|
||||||
* Do specific initialization stuff for your driver here
|
* Do specific initialization stuff for your driver here
|
||||||
* Like initializing your controller hardware (if any) and
|
* like initializing your controller hardware (if any) and
|
||||||
* determining the number of slots you have in the system
|
* determining the number of slots you have in the system
|
||||||
* right now.
|
* right now.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue