diff options
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-omap2/smartreflex.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/smartreflex.c b/arch/arm/mach-omap2/smartreflex.c index d7deadfaddb..5f429b96fc9 100644 --- a/arch/arm/mach-omap2/smartreflex.c +++ b/arch/arm/mach-omap2/smartreflex.c | |||
@@ -834,7 +834,8 @@ static int __init omap_sr_probe(struct platform_device *pdev) | |||
834 | 834 | ||
835 | if (!pdata) { | 835 | if (!pdata) { |
836 | dev_err(&pdev->dev, "%s: platform data missing\n", __func__); | 836 | dev_err(&pdev->dev, "%s: platform data missing\n", __func__); |
837 | return -EINVAL; | 837 | ret = -EINVAL; |
838 | goto err_free_devinfo; | ||
838 | } | 839 | } |
839 | 840 | ||
840 | mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 841 | mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); |