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
3b762d32
Commit
3b762d32
authored
Nov 19, 2005
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge master.kernel.org:/home/rmk/linux-2.6-drvmodel
Manual fixups to ARM ixp4xxx by hand.
parents
29ac878a
20913a9f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
20 deletions
+15
-20
drivers/i2c/busses/i2c-ixp2000.c
drivers/i2c/busses/i2c-ixp2000.c
+2
-4
drivers/i2c/busses/i2c-ixp4xx.c
drivers/i2c/busses/i2c-ixp4xx.c
+2
-5
drivers/mtd/maps/ixp2000.c
drivers/mtd/maps/ixp2000.c
+11
-11
No files found.
drivers/i2c/busses/i2c-ixp2000.c
View file @
3b762d32
...
...
@@ -36,8 +36,6 @@
#include <asm/hardware.h>
/* Pick up IXP2000-specific bits */
#include <asm/arch/gpio.h>
static
struct
device_driver
ixp2000_i2c_driver
;
static
inline
int
ixp2000_scl_pin
(
void
*
data
)
{
return
((
struct
ixp2000_i2c_pins
*
)
data
)
->
scl_pin
;
...
...
@@ -120,7 +118,7 @@ static int ixp2000_i2c_probe(struct platform_device *plat_dev)
drv_data
->
algo_data
.
timeout
=
100
;
drv_data
->
adapter
.
id
=
I2C_HW_B_IXP2000
,
strlcpy
(
drv_data
->
adapter
.
name
,
ixp2000_i2c_driver
.
name
,
strlcpy
(
drv_data
->
adapter
.
name
,
plat_dev
->
dev
.
driver
->
name
,
I2C_NAME_SIZE
);
drv_data
->
adapter
.
algo_data
=
&
drv_data
->
algo_data
,
...
...
@@ -132,7 +130,7 @@ static int ixp2000_i2c_probe(struct platform_device *plat_dev)
gpio_line_set
(
gpio
->
sda_pin
,
0
);
if
((
err
=
i2c_bit_add_bus
(
&
drv_data
->
adapter
))
!=
0
)
{
dev_err
(
dev
,
"Could not install, error %d
\n
"
,
err
);
dev_err
(
&
plat_dev
->
dev
,
"Could not install, error %d
\n
"
,
err
);
kfree
(
drv_data
);
return
err
;
}
...
...
drivers/i2c/busses/i2c-ixp4xx.c
View file @
3b762d32
...
...
@@ -35,8 +35,6 @@
#include <asm/hardware.h>
/* Pick up IXP4xx-specific bits */
static
struct
platform_driver
ixp4xx_i2c_driver
;
static
inline
int
ixp4xx_scl_pin
(
void
*
data
)
{
return
((
struct
ixp4xx_i2c_pins
*
)
data
)
->
scl_pin
;
...
...
@@ -128,7 +126,7 @@ static int ixp4xx_i2c_probe(struct platform_device *plat_dev)
drv_data
->
algo_data
.
timeout
=
100
;
drv_data
->
adapter
.
id
=
I2C_HW_B_IXP4XX
;
strlcpy
(
drv_data
->
adapter
.
name
,
ixp4xx_i2c_driver
.
driver
.
name
,
strlcpy
(
drv_data
->
adapter
.
name
,
plat_dev
->
dev
.
driver
->
name
,
I2C_NAME_SIZE
);
drv_data
->
adapter
.
algo_data
=
&
drv_data
->
algo_data
;
...
...
@@ -140,8 +138,7 @@ static int ixp4xx_i2c_probe(struct platform_device *plat_dev)
gpio_line_set
(
gpio
->
sda_pin
,
0
);
if
((
err
=
i2c_bit_add_bus
(
&
drv_data
->
adapter
)
!=
0
))
{
printk
(
KERN_ERR
"ERROR: Could not install %s
\n
"
,
plat_dev
->
dev
.
bus_id
);
printk
(
KERN_ERR
"ERROR: Could not install %s
\n
"
,
plat_dev
->
dev
.
bus_id
);
kfree
(
drv_data
);
return
err
;
...
...
drivers/mtd/maps/ixp2000.c
View file @
3b762d32
...
...
@@ -159,11 +159,11 @@ static int ixp2000_flash_probe(struct platform_device *dev)
return
-
ENODEV
;
window_size
=
dev
->
resource
->
end
-
dev
->
resource
->
start
+
1
;
dev_info
(
_
dev
,
"Probe of IXP2000 flash(%d banks x %dMiB)
\n
"
,
dev_info
(
&
dev
->
dev
,
"Probe of IXP2000 flash(%d banks x %dMiB)
\n
"
,
ixp_data
->
nr_banks
,
((
u32
)
window_size
>>
20
));
if
(
plat
->
width
!=
1
)
{
dev_err
(
_
dev
,
"IXP2000 MTD map only supports 8-bit mode, asking for %d
\n
"
,
dev_err
(
&
dev
->
dev
,
"IXP2000 MTD map only supports 8-bit mode, asking for %d
\n
"
,
plat
->
width
*
8
);
return
-
EIO
;
}
...
...
@@ -202,7 +202,7 @@ static int ixp2000_flash_probe(struct platform_device *dev)
dev
->
resource
->
end
-
dev
->
resource
->
start
+
1
,
dev
->
dev
.
bus_id
);
if
(
!
info
->
res
)
{
dev_err
(
_
dev
,
"Could not reserve memory region
\n
"
);
dev_err
(
&
dev
->
dev
,
"Could not reserve memory region
\n
"
);
err
=
-
ENOMEM
;
goto
Error
;
}
...
...
@@ -210,7 +210,7 @@ static int ixp2000_flash_probe(struct platform_device *dev)
info
->
map
.
map_priv_1
=
(
unsigned
long
)
ioremap
(
dev
->
resource
->
start
,
dev
->
resource
->
end
-
dev
->
resource
->
start
+
1
);
if
(
!
info
->
map
.
map_priv_1
)
{
dev_err
(
_
dev
,
"Failed to ioremap flash region
\n
"
);
dev_err
(
&
dev
->
dev
,
"Failed to ioremap flash region
\n
"
);
err
=
-
EIO
;
goto
Error
;
}
...
...
@@ -221,13 +221,13 @@ static int ixp2000_flash_probe(struct platform_device *dev)
*/
erratum44_workaround
=
ixp2000_has_broken_slowport
();
dev_info
(
_
dev
,
"Erratum 44 workaround %s
\n
"
,
dev_info
(
&
dev
->
dev
,
"Erratum 44 workaround %s
\n
"
,
erratum44_workaround
?
"enabled"
:
"disabled"
);
#endif
info
->
mtd
=
do_map_probe
(
plat
->
map_name
,
&
info
->
map
);
if
(
!
info
->
mtd
)
{
dev_err
(
_
dev
,
"map_probe failed
\n
"
);
dev_err
(
&
dev
->
dev
,
"map_probe failed
\n
"
);
err
=
-
ENXIO
;
goto
Error
;
}
...
...
@@ -237,7 +237,7 @@ static int ixp2000_flash_probe(struct platform_device *dev)
if
(
err
>
0
)
{
err
=
add_mtd_partitions
(
info
->
mtd
,
info
->
partitions
,
err
);
if
(
err
)
dev_err
(
_
dev
,
"Could not parse partitions
\n
"
);
dev_err
(
&
dev
->
dev
,
"Could not parse partitions
\n
"
);
}
if
(
err
)
...
...
@@ -251,8 +251,8 @@ static int ixp2000_flash_probe(struct platform_device *dev)
}
static
struct
platform_driver
ixp2000_flash_driver
=
{
.
probe
=
&
ixp2000_flash_probe
,
.
remove
=
&
ixp2000_flash_remove
.
probe
=
ixp2000_flash_probe
,
.
remove
=
ixp2000_flash_remove
,
.
driver
=
{
.
name
=
"IXP2000-Flash"
,
},
...
...
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