linux-omap-psp 2.6.32: update to latest PSP git
[openembedded.git] / recipes / linux / linux-omap-psp-2.6.32 / 0017-drivers-net-smsc911x-return-ENODEV-if-device-is-not-.patch
blob8858611d1d8ed9c810450ee4a5b8c896f37d41bc
1 From 0ebe3f2429da9162e658f4571727a45e1eaf2340 Mon Sep 17 00:00:00 2001
2 From: Steve Sakoman <sakoman@gmail.com>
3 Date: Tue, 15 Dec 2009 15:17:44 -0800
4 Subject: [PATCH 17/30] drivers: net: smsc911x: return ENODEV if device is not found
6 Signed-off-by: Steve Sakoman <sakoman@gmail.com>
7 ---
8 drivers/net/smsc911x.c | 4 +++-
9 1 files changed, 3 insertions(+), 1 deletions(-)
11 diff --git a/drivers/net/smsc911x.c b/drivers/net/smsc911x.c
12 index 494cd91..2472cb0 100644
13 --- a/drivers/net/smsc911x.c
14 +++ b/drivers/net/smsc911x.c
15 @@ -2021,8 +2021,10 @@ static int __devinit smsc911x_drv_probe(struct platform_device *pdev)
18 retval = smsc911x_init(dev);
19 - if (retval < 0)
20 + if (retval < 0) {
21 + retval = -ENODEV;
22 goto out_unmap_io_3;
23 + }
25 /* configure irq polarity and type before connecting isr */
26 if (pdata->config.irq_polarity == SMSC911X_IRQ_POLARITY_ACTIVE_HIGH)
27 --
28 1.6.6.1