Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 338409
b: refs/heads/master
c: 4bb535d
h: refs/heads/master
i:
  338407: 7fcf335
v: v3
  • Loading branch information
Josh Cartwright authored and Greg Kroah-Hartman committed Nov 16, 2012
1 parent fd7e5e6 commit 4fd9180
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 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: d1519e23c2b3a518fb41daf3eceae43382433ceb
refs/heads/master: 4bb535d2b6fe1466d89037c95945cc7bf5ba2377
1 change: 1 addition & 0 deletions trunk/drivers/tty/serial/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1376,6 +1376,7 @@ config SERIAL_MXS_AUART_CONSOLE

config SERIAL_XILINX_PS_UART
tristate "Xilinx PS UART support"
depends on OF
select SERIAL_CORE
help
This driver supports the Xilinx PS UART port.
Expand Down
9 changes: 0 additions & 9 deletions trunk/drivers/tty/serial/xilinx_uartps.c
Original file line number Diff line number Diff line change
Expand Up @@ -946,15 +946,11 @@ static int __devinit xuartps_probe(struct platform_device *pdev)
struct resource *res, *res2;
int clk = 0;

#ifdef CONFIG_OF
const unsigned int *prop;

prop = of_get_property(pdev->dev.of_node, "clock", NULL);
if (prop)
clk = be32_to_cpup(prop);
#else
clk = *((unsigned int *)(pdev->dev.platform_data));
#endif
if (!clk) {
dev_err(&pdev->dev, "no clock specified\n");
return -ENODEV;
Expand Down Expand Up @@ -1044,16 +1040,11 @@ static int xuartps_resume(struct platform_device *pdev)
}

/* Match table for of_platform binding */

#ifdef CONFIG_OF
static struct of_device_id xuartps_of_match[] __devinitdata = {
{ .compatible = "xlnx,xuartps", },
{}
};
MODULE_DEVICE_TABLE(of, xuartps_of_match);
#else
#define xuartps_of_match NULL
#endif

static struct platform_driver xuartps_platform_driver = {
.probe = xuartps_probe, /* Probe method */
Expand Down

0 comments on commit 4fd9180

Please sign in to comment.