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
a35a1df6
Commit
a35a1df6
authored
Oct 25, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'spi/topic/dev' into spi-next
parents
4cd667bb
95c63cfb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
drivers/spi/spidev.c
drivers/spi/spidev.c
+3
-4
No files found.
drivers/spi/spidev.c
View file @
a35a1df6
...
...
@@ -37,7 +37,7 @@
#include <linux/spi/spi.h>
#include <linux/spi/spidev.h>
#include <
asm
/uaccess.h>
#include <
linux
/uaccess.h>
/*
...
...
@@ -206,9 +206,9 @@ spidev_write(struct file *filp, const char __user *buf,
mutex_lock
(
&
spidev
->
buf_lock
);
missing
=
copy_from_user
(
spidev
->
buffer
,
buf
,
count
);
if
(
missing
==
0
)
{
if
(
missing
==
0
)
status
=
spidev_sync_write
(
spidev
,
count
);
}
else
else
status
=
-
EFAULT
;
mutex_unlock
(
&
spidev
->
buf_lock
);
...
...
@@ -629,7 +629,6 @@ static int spidev_remove(struct spi_device *spi)
/* make sure ops on existing fds can abort cleanly */
spin_lock_irq
(
&
spidev
->
spi_lock
);
spidev
->
spi
=
NULL
;
spi_set_drvdata
(
spi
,
NULL
);
spin_unlock_irq
(
&
spidev
->
spi_lock
);
/* prevent new opens */
...
...
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