Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 269325
b: refs/heads/master
c: 37210fb
h: refs/heads/master
i:
  269323: a76620c
v: v3
  • Loading branch information
Pawel Moll authored and Jeff Garzik committed Oct 8, 2011
1 parent 0f57c0e commit 69230a5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: edc7d12ede4333a1fd7b59cebae970b4953ec9d0
refs/heads/master: 37210fbe1ddcd91b0331877fae81645978b5c3b1
2 changes: 1 addition & 1 deletion trunk/drivers/ata/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ config PATA_PLATFORM

config PATA_OF_PLATFORM
tristate "OpenFirmware platform device PATA support"
depends on PATA_PLATFORM && PPC_OF
depends on PATA_PLATFORM && OF
help
This option enables support for generic directly connected ATA
devices commonly found on embedded systems with OpenFirmware
Expand Down
6 changes: 4 additions & 2 deletions trunk/drivers/ata/pata_of_platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/of_address.h>
#include <linux/of_irq.h>
#include <linux/of_platform.h>
#include <linux/ata_platform.h>

Expand Down Expand Up @@ -57,11 +59,11 @@ static int __devinit pata_of_platform_probe(struct platform_device *ofdev)

prop = of_get_property(dn, "reg-shift", NULL);
if (prop)
reg_shift = *prop;
reg_shift = be32_to_cpup(prop);

prop = of_get_property(dn, "pio-mode", NULL);
if (prop) {
pio_mode = *prop;
pio_mode = be32_to_cpup(prop);
if (pio_mode > 6) {
dev_err(&ofdev->dev, "invalid pio-mode\n");
return -EINVAL;
Expand Down

0 comments on commit 69230a5

Please sign in to comment.