Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
ec62e1c8
Commit
ec62e1c8
authored
Mar 08, 2010
by
Dmitry Torokhov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Input: i8042 - use platfrom_create_bundle() helper
Signed-off-by:
Dmitry Torokhov
<
dtor@mail.ru
>
parent
ce67eef6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
16 deletions
+8
-16
drivers/input/serio/i8042.c
drivers/input/serio/i8042.c
+8
-16
No files found.
drivers/input/serio/i8042.c
View file @
ec62e1c8
...
@@ -1386,6 +1386,8 @@ static int __init i8042_probe(struct platform_device *dev)
...
@@ -1386,6 +1386,8 @@ static int __init i8042_probe(struct platform_device *dev)
{
{
int
error
;
int
error
;
i8042_platform_device
=
dev
;
error
=
i8042_controller_selftest
();
error
=
i8042_controller_selftest
();
if
(
error
)
if
(
error
)
return
error
;
return
error
;
...
@@ -1421,6 +1423,7 @@ static int __init i8042_probe(struct platform_device *dev)
...
@@ -1421,6 +1423,7 @@ static int __init i8042_probe(struct platform_device *dev)
i8042_free_aux_ports
();
/* in case KBD failed but AUX not */
i8042_free_aux_ports
();
/* in case KBD failed but AUX not */
i8042_free_irqs
();
i8042_free_irqs
();
i8042_controller_reset
();
i8042_controller_reset
();
i8042_platform_device
=
NULL
;
return
error
;
return
error
;
}
}
...
@@ -1430,6 +1433,7 @@ static int __devexit i8042_remove(struct platform_device *dev)
...
@@ -1430,6 +1433,7 @@ static int __devexit i8042_remove(struct platform_device *dev)
i8042_unregister_ports
();
i8042_unregister_ports
();
i8042_free_irqs
();
i8042_free_irqs
();
i8042_controller_reset
();
i8042_controller_reset
();
i8042_platform_device
=
NULL
;
return
0
;
return
0
;
}
}
...
@@ -1448,6 +1452,7 @@ static struct platform_driver i8042_driver = {
...
@@ -1448,6 +1452,7 @@ static struct platform_driver i8042_driver = {
static
int
__init
i8042_init
(
void
)
static
int
__init
i8042_init
(
void
)
{
{
struct
platform_device
*
pdev
;
int
err
;
int
err
;
dbg_init
();
dbg_init
();
...
@@ -1460,31 +1465,18 @@ static int __init i8042_init(void)
...
@@ -1460,31 +1465,18 @@ static int __init i8042_init(void)
if
(
err
)
if
(
err
)
goto
err_platform_exit
;
goto
err_platform_exit
;
i8042_platform_device
=
platform_device_alloc
(
"i8042"
,
-
1
);
pdev
=
platform_create_bundle
(
&
i8042_driver
,
i8042_probe
,
NULL
,
0
,
NULL
,
0
);
if
(
!
i8042_platform_device
)
{
if
(
IS_ERR
(
pdev
)
)
{
err
=
-
ENOMEM
;
err
=
PTR_ERR
(
pdev
)
;
goto
err_platform_exit
;
goto
err_platform_exit
;
}
}
err
=
platform_device_add
(
i8042_platform_device
);
if
(
err
)
goto
err_free_device
;
err
=
platform_driver_probe
(
&
i8042_driver
,
i8042_probe
);
if
(
err
)
goto
err_del_device
;
panic_blink
=
i8042_panic_blink
;
panic_blink
=
i8042_panic_blink
;
return
0
;
return
0
;
err_del_device:
platform_device_del
(
i8042_platform_device
);
err_free_device:
platform_device_put
(
i8042_platform_device
);
err_platform_exit:
err_platform_exit:
i8042_platform_exit
();
i8042_platform_exit
();
return
err
;
return
err
;
}
}
...
...
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