Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
3a540b9d
Commit
3a540b9d
authored
Feb 25, 2004
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Plain Diff
Merge kroah.com:/home/greg/linux/BK/bleed-2.6
into kroah.com:/home/greg/linux/BK/driver-2.6
parents
ff4dc41e
d7176726
Changes
22
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
51 additions
and
37 deletions
+51
-37
arch/arm/kernel/time.c
arch/arm/kernel/time.c
+1
-1
arch/arm/mach-integrator/integrator_ap.c
arch/arm/mach-integrator/integrator_ap.c
+1
-1
arch/arm/mach-sa1100/irq.c
arch/arm/mach-sa1100/irq.c
+1
-1
arch/i386/kernel/apic.c
arch/i386/kernel/apic.c
+1
-1
arch/i386/kernel/i8259.c
arch/i386/kernel/i8259.c
+2
-2
arch/i386/kernel/nmi.c
arch/i386/kernel/nmi.c
+1
-1
arch/i386/kernel/time.c
arch/i386/kernel/time.c
+1
-1
arch/i386/oprofile/nmi_int.c
arch/i386/oprofile/nmi_int.c
+2
-2
arch/mips/kernel/i8259.c
arch/mips/kernel/i8259.c
+1
-1
arch/ppc/platforms/pmac_pic.c
arch/ppc/platforms/pmac_pic.c
+1
-1
arch/ppc/syslib/open_pic.c
arch/ppc/syslib/open_pic.c
+1
-1
arch/ppc/syslib/open_pic2.c
arch/ppc/syslib/open_pic2.c
+1
-1
arch/x86_64/kernel/apic.c
arch/x86_64/kernel/apic.c
+1
-1
arch/x86_64/kernel/i8259.c
arch/x86_64/kernel/i8259.c
+1
-1
arch/x86_64/kernel/nmi.c
arch/x86_64/kernel/nmi.c
+1
-1
drivers/base/cpu.c
drivers/base/cpu.c
+1
-1
drivers/base/node.c
drivers/base/node.c
+1
-1
drivers/base/sys.c
drivers/base/sys.c
+6
-6
drivers/char/misc.c
drivers/char/misc.c
+19
-5
drivers/input/serio/i8042.c
drivers/input/serio/i8042.c
+2
-2
drivers/s390/block/xpram.c
drivers/s390/block/xpram.c
+3
-3
include/linux/sysdev.h
include/linux/sysdev.h
+2
-2
No files found.
arch/arm/kernel/time.c
View file @
3a540b9d
...
...
@@ -178,7 +178,7 @@ static int __init leds_init(void)
int
ret
;
ret
=
sysdev_class_register
(
&
leds_sysclass
);
if
(
ret
==
0
)
ret
=
sys
_device
_register
(
&
leds_device
);
ret
=
sys
dev
_register
(
&
leds_device
);
return
ret
;
}
...
...
arch/arm/mach-integrator/integrator_ap.c
View file @
3a540b9d
...
...
@@ -173,7 +173,7 @@ static int __init irq_init_sysfs(void)
{
int
ret
=
sysdev_class_register
(
&
irq_class
);
if
(
ret
==
0
)
ret
=
sys
_device
_register
(
&
irq_device
);
ret
=
sys
dev
_register
(
&
irq_device
);
return
ret
;
}
...
...
arch/arm/mach-sa1100/irq.c
View file @
3a540b9d
...
...
@@ -278,7 +278,7 @@ static struct sys_device sa1100irq_device = {
static
int
__init
sa1100irq_init_devicefs
(
void
)
{
sysdev_class_register
(
&
sa1100irq_sysclass
);
return
sys
_device
_register
(
&
sa1100irq_device
);
return
sys
dev
_register
(
&
sa1100irq_device
);
}
device_initcall
(
sa1100irq_init_devicefs
);
...
...
arch/i386/kernel/apic.c
View file @
3a540b9d
...
...
@@ -595,7 +595,7 @@ static int __init init_lapic_sysfs(void)
error
=
sysdev_class_register
(
&
lapic_sysclass
);
if
(
!
error
)
error
=
sys
_device
_register
(
&
device_lapic
);
error
=
sys
dev
_register
(
&
device_lapic
);
return
error
;
}
device_initcall
(
init_lapic_sysfs
);
...
...
arch/i386/kernel/i8259.c
View file @
3a540b9d
...
...
@@ -258,7 +258,7 @@ static int __init i8259A_init_sysfs(void)
{
int
error
=
sysdev_class_register
(
&
i8259_sysdev_class
);
if
(
!
error
)
error
=
sys
_device
_register
(
&
device_i8259A
);
error
=
sys
dev
_register
(
&
device_i8259A
);
return
error
;
}
...
...
@@ -401,7 +401,7 @@ static int __init init_timer_sysfs(void)
{
int
error
=
sysdev_class_register
(
&
timer_sysclass
);
if
(
!
error
)
error
=
sys
_device
_register
(
&
device_timer
);
error
=
sys
dev
_register
(
&
device_timer
);
return
error
;
}
...
...
arch/i386/kernel/nmi.c
View file @
3a540b9d
...
...
@@ -248,7 +248,7 @@ static int __init init_lapic_nmi_sysfs(void)
error
=
sysdev_class_register
(
&
nmi_sysclass
);
if
(
!
error
)
error
=
sys
_device
_register
(
&
device_lapic_nmi
);
error
=
sys
dev
_register
(
&
device_lapic_nmi
);
return
error
;
}
/* must come after the local APIC's device_initcall() */
...
...
arch/i386/kernel/time.c
View file @
3a540b9d
...
...
@@ -346,7 +346,7 @@ static int time_init_device(void)
{
int
error
=
sysdev_class_register
(
&
pit_sysclass
);
if
(
!
error
)
error
=
sys
_device
_register
(
&
device_i8253
);
error
=
sys
dev
_register
(
&
device_i8253
);
return
error
;
}
...
...
arch/i386/oprofile/nmi_int.c
View file @
3a540b9d
...
...
@@ -65,14 +65,14 @@ static int __init init_driverfs(void)
{
int
error
;
if
(
!
(
error
=
sysdev_class_register
(
&
oprofile_sysclass
)))
error
=
sys
_device
_register
(
&
device_oprofile
);
error
=
sys
dev
_register
(
&
device_oprofile
);
return
error
;
}
static
void
__exit
exit_driverfs
(
void
)
{
sys
_device
_unregister
(
&
device_oprofile
);
sys
dev
_unregister
(
&
device_oprofile
);
sysdev_class_unregister
(
&
oprofile_sysclass
);
}
...
...
arch/mips/kernel/i8259.c
View file @
3a540b9d
...
...
@@ -242,7 +242,7 @@ static int __init i8259A_init_sysfs(void)
{
int
error
=
sysdev_class_register
(
&
i8259_sysdev_class
);
if
(
!
error
)
error
=
sys
_device
_register
(
&
device_i8259A
);
error
=
sys
dev
_register
(
&
device_i8259A
);
return
error
;
}
...
...
arch/ppc/platforms/pmac_pic.c
View file @
3a540b9d
...
...
@@ -646,7 +646,7 @@ static int __init init_pmacpic_sysfs(void)
printk
(
KERN_DEBUG
"Registering pmac pic with sysfs...
\n
"
);
sysdev_class_register
(
&
pmacpic_sysclass
);
sys
_device
_register
(
&
device_pmacpic
);
sys
dev
_register
(
&
device_pmacpic
);
sysdev_driver_register
(
&
pmacpic_sysclass
,
&
driver_pmacpic
);
return
0
;
}
...
...
arch/ppc/syslib/open_pic.c
View file @
3a540b9d
...
...
@@ -1032,7 +1032,7 @@ static int __init init_openpic_sysfs(void)
printk
(
KERN_ERR
"Failed registering openpic sys class
\n
"
);
return
-
ENODEV
;
}
rc
=
sys
_device
_register
(
&
device_openpic
);
rc
=
sys
dev
_register
(
&
device_openpic
);
if
(
rc
)
{
printk
(
KERN_ERR
"Failed registering openpic sys device
\n
"
);
return
-
ENODEV
;
...
...
arch/ppc/syslib/open_pic2.c
View file @
3a540b9d
...
...
@@ -699,7 +699,7 @@ static int __init init_openpic2_sysfs(void)
printk
(
KERN_ERR
"Failed registering openpic sys class
\n
"
);
return
-
ENODEV
;
}
rc
=
sys
_device
_register
(
&
device_openpic2
);
rc
=
sys
dev
_register
(
&
device_openpic2
);
if
(
rc
)
{
printk
(
KERN_ERR
"Failed registering openpic sys device
\n
"
);
return
-
ENODEV
;
...
...
arch/x86_64/kernel/apic.c
View file @
3a540b9d
...
...
@@ -553,7 +553,7 @@ static int __init init_lapic_sysfs(void)
/* XXX: remove suspend/resume procs if !apic_pm_state.active? */
error
=
sysdev_class_register
(
&
lapic_sysclass
);
if
(
!
error
)
error
=
sys
_device
_register
(
&
device_lapic
);
error
=
sys
dev
_register
(
&
device_lapic
);
return
error
;
}
device_initcall
(
init_lapic_sysfs
);
...
...
arch/x86_64/kernel/i8259.c
View file @
3a540b9d
...
...
@@ -430,7 +430,7 @@ static int __init init_timer_sysfs(void)
{
int
error
=
sysdev_class_register
(
&
timer_sysclass
);
if
(
!
error
)
error
=
sys
_device
_register
(
&
device_timer
);
error
=
sys
dev
_register
(
&
device_timer
);
return
error
;
}
...
...
arch/x86_64/kernel/nmi.c
View file @
3a540b9d
...
...
@@ -241,7 +241,7 @@ static int __init init_lapic_nmi_sysfs(void)
error
=
sysdev_class_register
(
&
nmi_sysclass
);
if
(
!
error
)
error
=
sys
_device
_register
(
&
device_lapic_nmi
);
error
=
sys
dev
_register
(
&
device_lapic_nmi
);
return
error
;
}
/* must come after the local APIC's device_initcall() */
...
...
drivers/base/cpu.c
View file @
3a540b9d
...
...
@@ -29,7 +29,7 @@ int __init register_cpu(struct cpu *cpu, int num, struct node *root)
cpu
->
sysdev
.
id
=
num
;
cpu
->
sysdev
.
cls
=
&
cpu_sysdev_class
;
error
=
sys
_device
_register
(
&
cpu
->
sysdev
);
error
=
sys
dev
_register
(
&
cpu
->
sysdev
);
if
(
!
error
&&
root
)
error
=
sysfs_create_link
(
&
root
->
sysdev
.
kobj
,
&
cpu
->
sysdev
.
kobj
,
...
...
drivers/base/node.c
View file @
3a540b9d
...
...
@@ -69,7 +69,7 @@ int __init register_node(struct node *node, int num, struct node *parent)
node
->
cpumap
=
node_to_cpumask
(
num
);
node
->
sysdev
.
id
=
num
;
node
->
sysdev
.
cls
=
&
node_class
;
error
=
sys
_device
_register
(
&
node
->
sysdev
);
error
=
sys
dev
_register
(
&
node
->
sysdev
);
if
(
!
error
){
sysdev_create_file
(
&
node
->
sysdev
,
&
attr_cpumap
);
...
...
drivers/base/sys.c
View file @
3a540b9d
...
...
@@ -8,7 +8,7 @@
*
* This exports a 'system' bus type.
* By default, a 'sys' bus gets added to the root of the system. There will
* always be core system devices. Devices can use sys
_device
_register() to
* always be core system devices. Devices can use sys
dev
_register() to
* add themselves as children of the system bus.
*/
...
...
@@ -164,11 +164,11 @@ EXPORT_SYMBOL(sysdev_driver_unregister);
/**
* sys
_device
_register - add a system device to the tree
* sys
dev
_register - add a system device to the tree
* @sysdev: device in question
*
*/
int
sys
_device
_register
(
struct
sys_device
*
sysdev
)
int
sys
dev
_register
(
struct
sys_device
*
sysdev
)
{
int
error
;
struct
sysdev_class
*
cls
=
sysdev
->
cls
;
...
...
@@ -212,7 +212,7 @@ int sys_device_register(struct sys_device * sysdev)
return
error
;
}
void
sys
_device
_unregister
(
struct
sys_device
*
sysdev
)
void
sys
dev
_unregister
(
struct
sys_device
*
sysdev
)
{
struct
sysdev_driver
*
drv
;
...
...
@@ -390,5 +390,5 @@ int __init sys_bus_init(void)
return
subsystem_register
(
&
system_subsys
);
}
EXPORT_SYMBOL
(
sys
_device
_register
);
EXPORT_SYMBOL
(
sys
_device
_unregister
);
EXPORT_SYMBOL
(
sys
dev
_register
);
EXPORT_SYMBOL
(
sys
dev
_unregister
);
drivers/char/misc.c
View file @
3a540b9d
...
...
@@ -212,6 +212,9 @@ static struct file_operations misc_fops = {
int
misc_register
(
struct
miscdevice
*
misc
)
{
struct
miscdevice
*
c
;
struct
class_device
*
class
;
dev_t
dev
;
int
err
;
down
(
&
misc_sem
);
list_for_each_entry
(
c
,
&
misc_list
,
list
)
{
...
...
@@ -240,19 +243,30 @@ int misc_register(struct miscdevice * misc)
snprintf
(
misc
->
devfs_name
,
sizeof
(
misc
->
devfs_name
),
"misc/%s"
,
misc
->
name
);
}
dev
=
MKDEV
(
MISC_MAJOR
,
misc
->
minor
);
class_simple_device_add
(
misc_class
,
MKDEV
(
MISC_MAJOR
,
misc
->
minor
),
misc
->
dev
,
misc
->
name
);
devfs_mk_cdev
(
MKDEV
(
MISC_MAJOR
,
misc
->
minor
),
S_IFCHR
|
S_IRUSR
|
S_IWUSR
|
S_IRGRP
,
misc
->
devfs_name
);
class
=
class_simple_device_add
(
misc_class
,
dev
,
misc
->
dev
,
misc
->
name
);
if
(
IS_ERR
(
class
))
{
err
=
PTR_ERR
(
class
);
goto
out
;
}
err
=
devfs_mk_cdev
(
dev
,
S_IFCHR
|
S_IRUSR
|
S_IWUSR
|
S_IRGRP
,
misc
->
devfs_name
);
if
(
err
)
{
class_simple_device_remove
(
dev
);
goto
out
;
}
/*
* Add it to the front, so that later devices can "override"
* earlier defaults
*/
list_add
(
&
misc
->
list
,
&
misc_list
);
out:
up
(
&
misc_sem
);
return
0
;
return
err
;
}
/**
...
...
drivers/input/serio/i8042.c
View file @
3a540b9d
...
...
@@ -957,7 +957,7 @@ int __init i8042_init(void)
mod_timer
(
&
i8042_timer
,
jiffies
+
I8042_POLL_PERIOD
);
if
(
sysdev_class_register
(
&
kbc_sysclass
)
==
0
)
{
if
(
sys
_device
_register
(
&
device_i8042
)
==
0
)
if
(
sys
dev
_register
(
&
device_i8042
)
==
0
)
i8042_sysdev_initialized
=
1
;
else
sysdev_class_unregister
(
&
kbc_sysclass
);
...
...
@@ -980,7 +980,7 @@ void __exit i8042_exit(void)
pm_unregister
(
i8042_pm_dev
);
if
(
i8042_sysdev_initialized
)
{
sys
_device
_unregister
(
&
device_i8042
);
sys
dev
_unregister
(
&
device_i8042
);
sysdev_class_unregister
(
&
kbc_sysclass
);
}
...
...
drivers/s390/block/xpram.c
View file @
3a540b9d
...
...
@@ -492,7 +492,7 @@ static void __exit xpram_exit(void)
}
unregister_blkdev
(
XPRAM_MAJOR
,
XPRAM_NAME
);
devfs_remove
(
"slram"
);
sys
_device
_unregister
(
&
xpram_sys_device
);
sys
dev
_unregister
(
&
xpram_sys_device
);
sysdev_class_unregister
(
&
xpram_sysclass
);
}
...
...
@@ -515,14 +515,14 @@ static int __init xpram_init(void)
if
(
rc
)
return
rc
;
rc
=
sys
_device
_register
(
&
xpram_sys_device
);
rc
=
sys
dev
_register
(
&
xpram_sys_device
);
if
(
rc
)
{
sysdev_class_unregister
(
&
xpram_sysclass
);
return
rc
;
}
rc
=
xpram_setup_blkdev
();
if
(
rc
)
sys
_device
_unregister
(
&
xpram_sys_device
);
sys
dev
_unregister
(
&
xpram_sys_device
);
return
rc
;
}
...
...
include/linux/sysdev.h
View file @
3a540b9d
...
...
@@ -70,8 +70,8 @@ struct sys_device {
struct
kobject
kobj
;
};
extern
int
sys
_device
_register
(
struct
sys_device
*
);
extern
void
sys
_device
_unregister
(
struct
sys_device
*
);
extern
int
sys
dev
_register
(
struct
sys_device
*
);
extern
void
sys
dev
_unregister
(
struct
sys_device
*
);
struct
sysdev_attribute
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment