projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc47ce9
)
gpio: pl061: drop extra check for NULL platform_data
author
Rob Herring
<rob.herring@calxeda.com>
Fri, 9 Dec 2011 22:56:08 +0000
(16:56 -0600)
committer
Grant Likely
<grant.likely@secretlab.ca>
Tue, 13 Dec 2011 18:01:14 +0000
(11:01 -0700)
In adding DT binding support, the check for NULL platform_data got added
back in inadvertently, so remove it.
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/gpio/gpio-pl061.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpio/gpio-pl061.c
b/drivers/gpio/gpio-pl061.c
index 093c90bd3c1d1b1d888ce2465831c95d125e0036..4102f63230fdd2950396e5bcf1013e1f169de42c 100644
(file)
--- a/
drivers/gpio/gpio-pl061.c
+++ b/
drivers/gpio/gpio-pl061.c
@@
-238,10
+238,6
@@
static int pl061_probe(struct amba_device *dev, const struct amba_id *id)
int ret, irq, i;
static DECLARE_BITMAP(init_irq, NR_IRQS);
- pdata = dev->dev.platform_data;
- if (pdata == NULL)
- return -ENODEV;
-
chip = kzalloc(sizeof(*chip), GFP_KERNEL);
if (chip == NULL)
return -ENOMEM;