projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[package] 6in4, 6to4: prevent starting the tunnel if kmod-sit is not yet loaded ...
[openwrt.git]
/
target
/
linux
/
rdc
/
patches-2.6.32
/
002-rdc321x_gpio.patch
diff --git
a/target/linux/rdc/patches-2.6.32/002-rdc321x_gpio.patch
b/target/linux/rdc/patches-2.6.32/002-rdc321x_gpio.patch
index
e1aa46e
..
42ad6aa
100644
(file)
--- a/
target/linux/rdc/patches-2.6.32/002-rdc321x_gpio.patch
+++ b/
target/linux/rdc/patches-2.6.32/002-rdc321x_gpio.patch
@@
-109,7
+109,7
@@
Changes from v2:
+ gpch->data_reg[reg] &= ~(1 << (gpio & 0x1f));
+
+ pci_write_config_dword(gpch->sb_pdev,
+ gpch->data_reg[reg] &= ~(1 << (gpio & 0x1f));
+
+ pci_write_config_dword(gpch->sb_pdev,
-+ reg ? gpch->reg
1_data_base : gpch->reg2
_data_base,
++ reg ? gpch->reg
2_data_base : gpch->reg1
_data_base,
+ gpch->data_reg[reg]);
+}
+
+ gpch->data_reg[reg]);
+}
+
@@
-171,7
+171,7
@@
Changes from v2:
+ struct rdc321x_gpio *rdc321x_gpio_dev;
+ struct rdc321x_gpio_pdata *pdata;
+
+ struct rdc321x_gpio *rdc321x_gpio_dev;
+ struct rdc321x_gpio_pdata *pdata;
+
-+ pdata = p
dev->dev.platform_data
;
++ pdata = p
latform_get_drvdata(pdev)
;
+ if (!pdata) {
+ dev_err(&pdev->dev, "no platform data supplied\n");
+ return -ENODEV;
+ if (!pdata) {
+ dev_err(&pdev->dev, "no platform data supplied\n");
+ return -ENODEV;
@@
-183,7
+183,7
@@
Changes from v2:
+ return -ENOMEM;
+ }
+
+ return -ENOMEM;
+ }
+
-+ r = platform_get_resource_byname(pdev, IORESOURCE_
MEM
, "gpio-reg1");
++ r = platform_get_resource_byname(pdev, IORESOURCE_
IO
, "gpio-reg1");
+ if (!r) {
+ dev_err(&pdev->dev, "failed to get gpio-reg1 resource\n");
+ err = -ENODEV;
+ if (!r) {
+ dev_err(&pdev->dev, "failed to get gpio-reg1 resource\n");
+ err = -ENODEV;
@@
-195,7
+195,7
@@
Changes from v2:
+ rdc321x_gpio_dev->reg1_ctrl_base = r->start;
+ rdc321x_gpio_dev->reg1_data_base = r->start + 0x4;
+
+ rdc321x_gpio_dev->reg1_ctrl_base = r->start;
+ rdc321x_gpio_dev->reg1_data_base = r->start + 0x4;
+
-+ r = platform_get_resource_byname(pdev, IORESOURCE_
MEM
, "gpio-reg2");
++ r = platform_get_resource_byname(pdev, IORESOURCE_
IO
, "gpio-reg2");
+ if (!r) {
+ dev_err(&pdev->dev, "failed to get gpio-reg2 resource\n");
+ err = -ENODEV;
+ if (!r) {
+ dev_err(&pdev->dev, "failed to get gpio-reg2 resource\n");
+ err = -ENODEV;
This page took
0.027939 seconds
and
4
git commands to generate.