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
nexedi
linux
Commits
14758220
Commit
14758220
authored
Nov 28, 2008
by
Eric Miao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] pxa: register Power I2C device only when necessary
Signed-off-by:
Eric Miao
<
eric.miao@marvell.com
>
parent
99464293
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
arch/arm/mach-pxa/pxa27x.c
arch/arm/mach-pxa/pxa27x.c
+1
-2
arch/arm/mach-pxa/pxa3xx.c
arch/arm/mach-pxa/pxa3xx.c
+2
-2
No files found.
arch/arm/mach-pxa/pxa27x.c
View file @
14758220
...
@@ -324,7 +324,7 @@ void __init pxa27x_set_i2c_power_info(struct i2c_pxa_platform_data *info)
...
@@ -324,7 +324,7 @@ void __init pxa27x_set_i2c_power_info(struct i2c_pxa_platform_data *info)
local_irq_disable
();
local_irq_disable
();
PCFR
|=
PCFR_PI2CEN
;
PCFR
|=
PCFR_PI2CEN
;
local_irq_enable
();
local_irq_enable
();
pxa
27x_device_i2c_power
.
dev
.
platform_data
=
info
;
pxa
_register_device
(
&
pxa27x_device_i2c_power
,
info
)
;
}
}
static
struct
platform_device
*
devices
[]
__initdata
=
{
static
struct
platform_device
*
devices
[]
__initdata
=
{
...
@@ -334,7 +334,6 @@ static struct platform_device *devices[] __initdata = {
...
@@ -334,7 +334,6 @@ static struct platform_device *devices[] __initdata = {
&
pxa_device_stuart
,
&
pxa_device_stuart
,
&
pxa_device_i2s
,
&
pxa_device_i2s
,
&
pxa_device_rtc
,
&
pxa_device_rtc
,
&
pxa27x_device_i2c_power
,
&
pxa27x_device_ssp1
,
&
pxa27x_device_ssp1
,
&
pxa27x_device_ssp2
,
&
pxa27x_device_ssp2
,
&
pxa27x_device_ssp3
,
&
pxa27x_device_ssp3
,
...
...
arch/arm/mach-pxa/pxa3xx.c
View file @
14758220
...
@@ -29,6 +29,7 @@
...
@@ -29,6 +29,7 @@
#include <mach/pm.h>
#include <mach/pm.h>
#include <mach/dma.h>
#include <mach/dma.h>
#include <mach/ssp.h>
#include <mach/ssp.h>
#include <mach/i2c.h>
#include "generic.h"
#include "generic.h"
#include "devices.h"
#include "devices.h"
...
@@ -531,7 +532,7 @@ void __init pxa3xx_init_irq(void)
...
@@ -531,7 +532,7 @@ void __init pxa3xx_init_irq(void)
void
__init
pxa3xx_set_i2c_power_info
(
struct
i2c_pxa_platform_data
*
info
)
void
__init
pxa3xx_set_i2c_power_info
(
struct
i2c_pxa_platform_data
*
info
)
{
{
pxa
3xx_device_i2c_power
.
dev
.
platform_data
=
info
;
pxa
_register_device
(
&
pxa3xx_device_i2c_power
,
info
)
;
}
}
static
struct
platform_device
*
devices
[]
__initdata
=
{
static
struct
platform_device
*
devices
[]
__initdata
=
{
...
@@ -547,7 +548,6 @@ static struct platform_device *devices[] __initdata = {
...
@@ -547,7 +548,6 @@ static struct platform_device *devices[] __initdata = {
&
pxa3xx_device_ssp4
,
&
pxa3xx_device_ssp4
,
&
pxa27x_device_pwm0
,
&
pxa27x_device_pwm0
,
&
pxa27x_device_pwm1
,
&
pxa27x_device_pwm1
,
&
pxa3xx_device_i2c_power
,
};
};
static
struct
sys_device
pxa3xx_sysdev
[]
=
{
static
struct
sys_device
pxa3xx_sysdev
[]
=
{
...
...
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