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
4cd667bb
Commit
4cd667bb
authored
Oct 25, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'spi/topic/designware' into spi-next
parents
f24b19cb
e0045ebf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
drivers/spi/spi-dw-mmio.c
drivers/spi/spi-dw-mmio.c
+1
-4
drivers/spi/spi-dw-pci.c
drivers/spi/spi-dw-pci.c
+1
-2
No files found.
drivers/spi/spi-dw-mmio.c
View file @
4cd667bb
...
...
@@ -74,7 +74,7 @@ static int dw_spi_mmio_probe(struct platform_device *pdev)
dwsmmio
->
clk
=
clk_get
(
&
pdev
->
dev
,
NULL
);
if
(
IS_ERR
(
dwsmmio
->
clk
))
{
ret
=
PTR_ERR
(
dwsmmio
->
clk
);
goto
err_
irq
;
goto
err_
unmap
;
}
clk_enable
(
dwsmmio
->
clk
);
...
...
@@ -94,8 +94,6 @@ static int dw_spi_mmio_probe(struct platform_device *pdev)
clk_disable
(
dwsmmio
->
clk
);
clk_put
(
dwsmmio
->
clk
);
dwsmmio
->
clk
=
NULL
;
err_irq:
free_irq
(
dws
->
irq
,
dws
);
err_unmap:
iounmap
(
dws
->
regs
);
err_release_reg:
...
...
@@ -115,7 +113,6 @@ static int dw_spi_mmio_remove(struct platform_device *pdev)
clk_put
(
dwsmmio
->
clk
);
dwsmmio
->
clk
=
NULL
;
free_irq
(
dwsmmio
->
dws
.
irq
,
&
dwsmmio
->
dws
);
dw_spi_remove_host
(
&
dwsmmio
->
dws
);
iounmap
(
dwsmmio
->
dws
.
regs
);
kfree
(
dwsmmio
);
...
...
drivers/spi/spi-dw-pci.c
View file @
4cd667bb
...
...
@@ -40,7 +40,7 @@ static int spi_pci_probe(struct pci_dev *pdev,
int
pci_bar
=
0
;
int
ret
;
printk
(
KERN_INFO
"DW:
found PCI SPI controller(ID: %04x:%04x)
\n
"
,
dev_info
(
&
pdev
->
dev
,
"
found PCI SPI controller(ID: %04x:%04x)
\n
"
,
pdev
->
vendor
,
pdev
->
device
);
ret
=
pci_enable_device
(
pdev
);
...
...
@@ -109,7 +109,6 @@ static void spi_pci_remove(struct pci_dev *pdev)
{
struct
dw_spi_pci
*
dwpci
=
pci_get_drvdata
(
pdev
);
pci_set_drvdata
(
pdev
,
NULL
);
dw_spi_remove_host
(
&
dwpci
->
dws
);
iounmap
(
dwpci
->
dws
.
regs
);
pci_release_region
(
pdev
,
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