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
c3dbe2b7
Commit
c3dbe2b7
authored
Sep 01, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'spi/topic/bcm2835' into spi-next
parents
5264af0c
7bc00310
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
drivers/spi/spi-bcm2835.c
drivers/spi/spi-bcm2835.c
+2
-8
No files found.
drivers/spi/spi-bcm2835.c
View file @
c3dbe2b7
...
...
@@ -314,7 +314,7 @@ static int bcm2835_spi_probe(struct platform_device *pdev)
platform_set_drvdata
(
pdev
,
master
);
master
->
mode_bits
=
BCM2835_SPI_MODE_BITS
;
master
->
bits_per_word_mask
=
BIT
(
8
-
1
);
master
->
bits_per_word_mask
=
SPI_BPW_MASK
(
8
);
master
->
bus_num
=
-
1
;
master
->
num_chipselect
=
3
;
master
->
transfer_one_message
=
bcm2835_spi_transfer_one
;
...
...
@@ -325,12 +325,6 @@ static int bcm2835_spi_probe(struct platform_device *pdev)
init_completion
(
&
bs
->
done
);
res
=
platform_get_resource
(
pdev
,
IORESOURCE_MEM
,
0
);
if
(
!
res
)
{
dev_err
(
&
pdev
->
dev
,
"could not get memory resource
\n
"
);
err
=
-
ENODEV
;
goto
out_master_put
;
}
bs
->
regs
=
devm_ioremap_resource
(
&
pdev
->
dev
,
res
);
if
(
IS_ERR
(
bs
->
regs
))
{
err
=
PTR_ERR
(
bs
->
regs
);
...
...
@@ -383,7 +377,7 @@ static int bcm2835_spi_probe(struct platform_device *pdev)
static
int
bcm2835_spi_remove
(
struct
platform_device
*
pdev
)
{
struct
spi_master
*
master
=
platform_get_drvdata
(
pdev
);
struct
spi_master
*
master
=
spi_master_get
(
platform_get_drvdata
(
pdev
)
);
struct
bcm2835_spi
*
bs
=
spi_master_get_devdata
(
master
);
free_irq
(
bs
->
irq
,
master
);
...
...
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