Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AndroidKernelMSM
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Matombo
AndroidKernelMSM
Commits
bd40eb9b
Commit
bd40eb9b
authored
Apr 20, 2013
by
Arve Hjønnevåg
Browse files
Options
Downloads
Patches
Plain Diff
mmc: slot-gpio: HACK: change gpio_get_value_cansleep to gpio_get_value
sdhci_request calls mmc_gpio_get_cd with interrutps disabled
parent
7d297fba
Loading
Loading
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
drivers/mmc/core/slot-gpio.c
+1
-1
1 addition, 1 deletion
drivers/mmc/core/slot-gpio.c
with
1 addition
and
1 deletion
drivers/mmc/core/slot-gpio.c
+
1
−
1
View file @
bd40eb9b
...
...
@@ -87,7 +87,7 @@ int mmc_gpio_get_cd(struct mmc_host *host)
if
(
!
ctx
||
!
gpio_is_valid
(
ctx
->
cd_gpio
))
return
-
ENOSYS
;
return
!
gpio_get_value
_cansleep
(
ctx
->
cd_gpio
)
^
return
!
gpio_get_value
(
ctx
->
cd_gpio
)
^
!!
(
host
->
caps2
&
MMC_CAP2_CD_ACTIVE_HIGH
);
}
EXPORT_SYMBOL
(
mmc_gpio_get_cd
);
...
...
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment