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
70083c4c
Commit
70083c4c
authored
Jul 01, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'regulator/topic/tps62360' into regulator-next
parents
60908305
0a62d03b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
drivers/regulator/tps62360-regulator.c
drivers/regulator/tps62360-regulator.c
+6
-2
No files found.
drivers/regulator/tps62360-regulator.c
View file @
70083c4c
...
...
@@ -351,7 +351,6 @@ static int tps62360_probe(struct i2c_client *client,
int
chip_id
;
pdata
=
client
->
dev
.
platform_data
;
chip_id
=
id
->
driver_data
;
if
(
client
->
dev
.
of_node
)
{
const
struct
of_device_id
*
match
;
...
...
@@ -364,6 +363,11 @@ static int tps62360_probe(struct i2c_client *client,
chip_id
=
(
int
)
match
->
data
;
if
(
!
pdata
)
pdata
=
of_get_tps62360_platform_data
(
&
client
->
dev
);
}
else
if
(
id
)
{
chip_id
=
id
->
driver_data
;
}
else
{
dev_err
(
&
client
->
dev
,
"No device tree match or id table match found
\n
"
);
return
-
ENODEV
;
}
if
(
!
pdata
)
{
...
...
@@ -402,7 +406,7 @@ static int tps62360_probe(struct i2c_client *client,
return
-
ENODEV
;
}
tps
->
desc
.
name
=
id
->
name
;
tps
->
desc
.
name
=
client
->
name
;
tps
->
desc
.
id
=
0
;
tps
->
desc
.
ops
=
&
tps62360_dcdc_ops
;
tps
->
desc
.
type
=
REGULATOR_VOLTAGE
;
...
...
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