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
ee4629f5
Commit
ee4629f5
authored
Dec 24, 2014
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branches 'spi/fix/img-spfi' and 'spi/fix/msiof' into spi-linus
parents
76fe5e95
01576056
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
drivers/spi/spi-sh-msiof.c
drivers/spi/spi-sh-msiof.c
+5
-0
No files found.
drivers/spi/spi-sh-msiof.c
View file @
ee4629f5
...
...
@@ -480,6 +480,8 @@ static int sh_msiof_spi_setup(struct spi_device *spi)
struct
device_node
*
np
=
spi
->
master
->
dev
.
of_node
;
struct
sh_msiof_spi_priv
*
p
=
spi_master_get_devdata
(
spi
->
master
);
pm_runtime_get_sync
(
&
p
->
pdev
->
dev
);
if
(
!
np
)
{
/*
* Use spi->controller_data for CS (same strategy as spi_gpio),
...
...
@@ -498,6 +500,9 @@ static int sh_msiof_spi_setup(struct spi_device *spi)
if
(
spi
->
cs_gpio
>=
0
)
gpio_set_value
(
spi
->
cs_gpio
,
!
(
spi
->
mode
&
SPI_CS_HIGH
));
pm_runtime_put_sync
(
&
p
->
pdev
->
dev
);
return
0
;
}
...
...
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