Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 368072
b: refs/heads/master
c: ba52a7f
h: refs/heads/master
v: v3
  • Loading branch information
Sachin Kamat authored and Dmitry Torokhov committed Mar 18, 2013
1 parent e0e5eaf commit 5040e60
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 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: 688d794c4c3f8b08c814381ee2edd3ede5856056
refs/heads/master: ba52a7fc434bea7c4a5d0ac7c10bf131f5ac60e2
9 changes: 4 additions & 5 deletions trunk/drivers/input/keyboard/tegra-kbc.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include <linux/slab.h>
#include <linux/input/matrix_keypad.h>
#include <linux/clk/tegra.h>
#include <linux/err.h>

#define KBC_MAX_GPIO 24
#define KBC_MAX_KPENT 8
Expand Down Expand Up @@ -608,11 +609,9 @@ static int tegra_kbc_probe(struct platform_device *pdev)

setup_timer(&kbc->timer, tegra_kbc_keypress_timer, (unsigned long)kbc);

kbc->mmio = devm_request_and_ioremap(&pdev->dev, res);
if (!kbc->mmio) {
dev_err(&pdev->dev, "Cannot request memregion/iomap address\n");
return -EBUSY;
}
kbc->mmio = devm_ioremap_resource(&pdev->dev, res);
if (IS_ERR(kbc->mmio))
return PTR_ERR(kbc->mmio);

kbc->clk = devm_clk_get(&pdev->dev, NULL);
if (IS_ERR(kbc->clk)) {
Expand Down

0 comments on commit 5040e60

Please sign in to comment.