summaryrefslogtreecommitdiff
path: root/drivers/ata/pata_of_platform.c
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2014-08-23 14:45:47 +0400
committerTejun Heo <tj@kernel.org>2014-08-23 21:05:08 +0400
commit53f3cc46336b9e514c98556b4a009a69ed808d3b (patch)
treeaaa6199a54836ae9d7f8c1021134b45feb6f1fdb /drivers/ata/pata_of_platform.c
parentca99140a63b7326ee9a38f64c326317f2c63b594 (diff)
downloadlinux-53f3cc46336b9e514c98556b4a009a69ed808d3b.tar.xz
pata_platform: Remove useless irq_flags field
IRQ flags can be obtained from resource structure, there are no need to use additional field in the platform_data to store these values. This patch removes this field and convert existing users of this driver to use IRQ flags from the resources. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/ata/pata_of_platform.c')
-rw-r--r--drivers/ata/pata_of_platform.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/ata/pata_of_platform.c b/drivers/ata/pata_of_platform.c
index 6af1c9b9a464..64965398914a 100644
--- a/drivers/ata/pata_of_platform.c
+++ b/drivers/ata/pata_of_platform.c
@@ -43,8 +43,6 @@ static int pata_of_platform_probe(struct platform_device *ofdev)
}
irq_res = platform_get_resource(ofdev, IORESOURCE_IRQ, 0);
- if (irq_res)
- irq_res->flags = 0;
prop = of_get_property(dn, "reg-shift", NULL);
if (prop)