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
95328a19
Commit
95328a19
authored
Apr 28, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'regulator/topic/max8998' into v3.9-rc8
parents
9eaec296
9df19a55
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
drivers/regulator/max8998.c
drivers/regulator/max8998.c
+6
-3
No files found.
drivers/regulator/max8998.c
View file @
95328a19
...
...
@@ -665,14 +665,16 @@ static int max8998_pmic_probe(struct platform_device *pdev)
gpio_is_valid
(
pdata
->
buck1_set2
))
{
/* Check if SET1 is not equal to 0 */
if
(
!
pdata
->
buck1_set1
)
{
printk
(
KERN_ERR
"MAX8998 SET1 GPIO defined as 0 !
\n
"
);
dev_err
(
&
pdev
->
dev
,
"MAX8998 SET1 GPIO defined as 0 !
\n
"
);
WARN_ON
(
!
pdata
->
buck1_set1
);
ret
=
-
EIO
;
goto
err_out
;
}
/* Check if SET2 is not equal to 0 */
if
(
!
pdata
->
buck1_set2
)
{
printk
(
KERN_ERR
"MAX8998 SET2 GPIO defined as 0 !
\n
"
);
dev_err
(
&
pdev
->
dev
,
"MAX8998 SET2 GPIO defined as 0 !
\n
"
);
WARN_ON
(
!
pdata
->
buck1_set2
);
ret
=
-
EIO
;
goto
err_out
;
...
...
@@ -738,7 +740,8 @@ static int max8998_pmic_probe(struct platform_device *pdev)
if
(
gpio_is_valid
(
pdata
->
buck2_set3
))
{
/* Check if SET3 is not equal to 0 */
if
(
!
pdata
->
buck2_set3
)
{
printk
(
KERN_ERR
"MAX8998 SET3 GPIO defined as 0 !
\n
"
);
dev_err
(
&
pdev
->
dev
,
"MAX8998 SET3 GPIO defined as 0 !
\n
"
);
WARN_ON
(
!
pdata
->
buck2_set3
);
ret
=
-
EIO
;
goto
err_out
;
...
...
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