Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 83985
b: refs/heads/master
c: 0e349b0
h: refs/heads/master
i:
  83983: eda8ddf
v: v3
  • Loading branch information
Stephen Neuendorffer authored and Grant Likely committed Feb 6, 2008
1 parent 4c14b4d commit de4ac2f
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 911a3175997000c1fcddb2013aaa5fbbee79f0f0
refs/heads/master: 0e349b0e2d90eb1bb76d16c48d0127feebfeeb89
2 changes: 1 addition & 1 deletion trunk/arch/powerpc/platforms/40x/virtex.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ static int __init virtex_probe(void)
{
unsigned long root = of_get_flat_dt_root();

if (!of_flat_dt_is_compatible(root, "xilinx,virtex"))
if (!of_flat_dt_is_compatible(root, "xlnx,virtex"))
return 0;

return 1;
Expand Down
4 changes: 3 additions & 1 deletion trunk/drivers/block/xsysace.c
Original file line number Diff line number Diff line change
Expand Up @@ -1203,7 +1203,9 @@ static int __devexit ace_of_remove(struct of_device *op)

/* Match table for of_platform binding */
static struct of_device_id ace_of_match[] __devinitdata = {
{ .compatible = "xilinx,xsysace", },
{ .compatible = "xlnx,opb-sysace-1.00.b", },
{ .compatible = "xlnx,opb-sysace-1.00.c", },
{ .compatible = "xlnx,xps-sysace-1.00.a", },
{},
};
MODULE_DEVICE_TABLE(of, ace_of_match);
Expand Down
23 changes: 15 additions & 8 deletions trunk/drivers/serial/uartlite.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,21 @@
#include <linux/tty.h>
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/init.h>
#include <asm/io.h>
#if defined(CONFIG_OF)
#include <linux/of.h>
#include <linux/of_device.h>
#include <linux/of_platform.h>

/* Match table for of_platform binding */
static struct of_device_id ulite_of_match[] __devinitdata = {
{ .compatible = "xlnx,opb-uartlite-1.00.b", },
{ .compatible = "xlnx,xps-uartlite-1.00.a", },
{}
};
MODULE_DEVICE_TABLE(of, ulite_of_match);

#endif

#define ULITE_NAME "ttyUL"
Expand Down Expand Up @@ -275,6 +286,9 @@ static void ulite_release_port(struct uart_port *port)

static int ulite_request_port(struct uart_port *port)
{
pr_debug("ulite console: port=%p; port->mapbase=%x\n",
port, port->mapbase);

if (!request_mem_region(port->mapbase, ULITE_REGION, "uartlite")) {
dev_err(port->dev, "Memory region busy\n");
return -EBUSY;
Expand Down Expand Up @@ -383,7 +397,7 @@ static inline void __init ulite_console_of_find_device(int id)
const unsigned int *of_id;
int rc;

for_each_compatible_node(np, NULL, "xilinx,uartlite") {
for_each_matching_node(np, ulite_of_match) {
of_id = of_get_property(np, "port-number", NULL);
if ((!of_id) || (*of_id != id))
continue;
Expand Down Expand Up @@ -617,13 +631,6 @@ static int __devexit ulite_of_remove(struct of_device *op)
return ulite_release(&op->dev);
}

/* Match table for of_platform binding */
static struct of_device_id ulite_of_match[] __devinitdata = {
{ .type = "serial", .compatible = "xilinx,uartlite", },
{},
};
MODULE_DEVICE_TABLE(of, ulite_of_match);

static struct of_platform_driver ulite_of_driver = {
.owner = THIS_MODULE,
.name = "uartlite",
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/video/xilinxfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ static int __devexit xilinxfb_of_remove(struct of_device *op)

/* Match table for of_platform binding */
static struct of_device_id xilinxfb_of_match[] __devinitdata = {
{ .compatible = "xilinx,ml300-fb", },
{ .compatible = "xlnx,plb-tft-cntlr-ref-1.00.a", },
{},
};
MODULE_DEVICE_TABLE(of, xilinxfb_of_match);
Expand Down

0 comments on commit de4ac2f

Please sign in to comment.