[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1406298233-27876-2-git-send-email-pawel.moll@arm.com>
Date: Fri, 25 Jul 2014 15:23:50 +0100
From: Pawel Moll <pawel.moll@....com>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: Olof Johansson <olof@...om.net>,
Stephen Warren <swarren@...dotorg.org>,
Catalin Marinas <Catalin.Marinas@....com>, paul@...an.com,
Arnd Bergmann <arnd@...db.de>,
Peter De Schrijver <pdeschrijver@...dia.com>, arm@...nel.org,
linux-tegra@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org, Pawel Moll <pawel.moll@....com>,
Chris Metcalf <cmetcalf@...era.com>
Subject: [PATCH 2/5] char: tile-srom: Remove reference to platform_bus
The code was creating "srom" class devices using
platform_bus as a parent. As they are not really
platform devices, make them virtual, using NULL instead.
Cc: Chris Metcalf <cmetcalf@...era.com>
Signed-off-by: Pawel Moll <pawel.moll@....com>
---
drivers/char/tile-srom.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/char/tile-srom.c b/drivers/char/tile-srom.c
index bd37747..be88699 100644
--- a/drivers/char/tile-srom.c
+++ b/drivers/char/tile-srom.c
@@ -350,7 +350,7 @@ static int srom_setup_minor(struct srom_dev *srom, int index)
SROM_PAGE_SIZE_OFF, sizeof(srom->page_size)) < 0)
return -EIO;
- dev = device_create(srom_class, &platform_bus,
+ dev = device_create(srom_class, NULL,
MKDEV(srom_major, index), srom, "%d", index);
return PTR_ERR_OR_ZERO(dev);
}
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists