OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge remote-tracking branches 'spi/topic/qup', 'spi/topic/rockchip', 'spi/topic...
[uclinux-h8/linux.git]
/
drivers
/
phy
/
phy-hix5hd2-sata.c
diff --git
a/drivers/phy/phy-hix5hd2-sata.c
b/drivers/phy/phy-hix5hd2-sata.c
index
34915b4
..
d6b2265
100644
(file)
--- a/
drivers/phy/phy-hix5hd2-sata.c
+++ b/
drivers/phy/phy-hix5hd2-sata.c
@@
-147,6
+147,9
@@
static int hix5hd2_sata_phy_probe(struct platform_device *pdev)
return -ENOMEM;
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
+ if (!res)
+ return -EINVAL;
+
priv->base = devm_ioremap(dev, res->start, resource_size(res));
if (!priv->base)
return -ENOMEM;