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
084b7c83
Commit
084b7c83
authored
Jan 12, 2011
by
Ben Dooks
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-2638/i2c/iop' into for-linus/i2c-2638
parents
7f42f9fe
747fcc91
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
drivers/i2c/busses/i2c-iop3xx.c
drivers/i2c/busses/i2c-iop3xx.c
+3
-3
drivers/i2c/busses/i2c-iop3xx.h
drivers/i2c/busses/i2c-iop3xx.h
+1
-1
No files found.
drivers/i2c/busses/i2c-iop3xx.c
View file @
084b7c83
...
...
@@ -409,7 +409,7 @@ iop3xx_i2c_remove(struct platform_device *pdev)
IOP3XX_ICR_RXFULL_IE
|
IOP3XX_ICR_TXEMPTY_IE
);
__raw_writel
(
cr
,
adapter_data
->
ioaddr
+
CR_OFFSET
);
iounmap
(
(
void
__iomem
*
)
adapter_data
->
ioaddr
);
iounmap
(
adapter_data
->
ioaddr
);
release_mem_region
(
res
->
start
,
IOP3XX_I2C_IO_SIZE
);
kfree
(
adapter_data
);
kfree
(
padapter
);
...
...
@@ -453,7 +453,7 @@ iop3xx_i2c_probe(struct platform_device *pdev)
/* set the adapter enumeration # */
adapter_data
->
id
=
i2c_id
++
;
adapter_data
->
ioaddr
=
(
u32
)
ioremap
(
res
->
start
,
IOP3XX_I2C_IO_SIZE
);
adapter_data
->
ioaddr
=
ioremap
(
res
->
start
,
IOP3XX_I2C_IO_SIZE
);
if
(
!
adapter_data
->
ioaddr
)
{
ret
=
-
ENOMEM
;
goto
release_region
;
...
...
@@ -498,7 +498,7 @@ iop3xx_i2c_probe(struct platform_device *pdev)
return
0
;
unmap:
iounmap
(
(
void
__iomem
*
)
adapter_data
->
ioaddr
);
iounmap
(
adapter_data
->
ioaddr
);
release_region:
release_mem_region
(
res
->
start
,
IOP3XX_I2C_IO_SIZE
);
...
...
drivers/i2c/busses/i2c-iop3xx.h
View file @
084b7c83
...
...
@@ -97,7 +97,7 @@
#define IOP3XX_I2C_IO_SIZE 0x18
struct
i2c_algo_iop3xx_data
{
u32
ioaddr
;
void
__iomem
*
ioaddr
;
wait_queue_head_t
waitq
;
spinlock_t
lock
;
u32
SR_enabled
,
SR_received
;
...
...
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