diff mbox

rotary_encoder: fix relative axis support

Message ID BD79186B4FD85F4B8E60E381CAEE190901D42CBE@mi8nycmail19.Mi8.com (mailing list archive)
State Accepted
Commit 06ee3d3c254a8e8abb9549cd228325114f596e5c
Headers show

Commit Message

Hartley Sweeten Oct. 1, 2009, 12:33 a.m. UTC
None
diff mbox

Patch

diff --git a/drivers/input/misc/rotary_encoder.c b/drivers/input/misc/rotary_encoder.c
index c806fbf..3b9f588 100644
--- a/drivers/input/misc/rotary_encoder.c
+++ b/drivers/input/misc/rotary_encoder.c
@@ -106,8 +106,8 @@  static int __devinit rotary_encoder_probe(struct platform_device *pdev)
 	struct input_dev *input;
 	int err;
 
-	if (!pdata || !pdata->steps) {
-		dev_err(&pdev->dev, "invalid platform data\n");
+	if (!pdata) {
+		dev_err(&pdev->dev, "missing platform data\n");
 		return -ENOENT;
 	}