Skip to contentSkip to conversation

drivers-block-xsysacec-fix-id-with-missing-port-number.patch removed from -mm tree

merged [email protected] 1 participant 1 message May 28, 2013 Block layer

lore
Share & tools
lore
#0 lore raw

Subject: [merged] drivers-block-xsysacec-fix-id-with-missing-port-number.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Tue, 28 May 2013 12:36:32 -0700

The patch titled
Subject: drivers/block/xsysace.c: fix id with missing port-number
has been removed from the -mm tree. Its filename was
drivers-block-xsysacec-fix-id-with-missing-port-number.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Gernot Vormayr <[email protected]>
Subject: drivers/block/xsysace.c: fix id with missing port-number

If the port number is missing from the device-tree the device gets named xs` instead of xsa. This fixes the check for missing ids.

Tested on ml507 board.

Cc Greg Kroah-Hartman <[email protected]>
Cc Jens Axboe <[email protected]>
Cc Grant Likely <[email protected]>
Cc Rob Herring <[email protected]>

---

 drivers/block/xsysace.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/block/xsysace.c renamed from drivers/block/xsysace.c~drivers-block-xsysacec-fix-id-with-missing-port-number +1 -2
diff -puN drivers/block/xsysace.c~drivers-block-xsysacec-fix-id-with-missing-port-number drivers/block/xsysace.c
@@ -1160,8 +1160,7 @@ static int ace_probe(struct platform_dev
 	dev_dbg(&dev->dev, "ace_probe(%p)\n", dev);
 
 	/* device id and bus width */
-	of_property_read_u32(dev->dev.of_node, "port-number", &id);
-	if (id < 0)
+	if (of_property_read_u32(dev->dev.of_node, "port-number", &id))
 		id = 0;
 	if (of_find_property(dev->dev.of_node, "8-bit", NULL))
 		bus_width = ACE_BUS_WIDTH_8;

_

Patches currently in -mm which might be from [email protected] are