]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/input/touchscreen/tsc2301_ts.c
tsc2301 - switch to using input_dev->dev.parent
[linux-2.6-omap-h63xx.git] / drivers / input / touchscreen / tsc2301_ts.c
index 393bba89c54daf2cd1e2bf66aa461e5a3e2d2e9c..a01aa58c2cea722bd77aa55c3874b11f107bf31a 100644 (file)
@@ -611,6 +611,7 @@ int __devinit tsc2301_ts_init(struct tsc2301 *tsc,
        snprintf(ts->phys, sizeof(ts->phys),
                 "%s/input-ts", tsc->spi->dev.bus_id);
        idev->phys = ts->phys;
+       idev->dev.parent = &tsc->spi->dev;
 
        idev->evbit[0] = BIT(EV_ABS) | BIT(EV_KEY);
        idev->absbit[0] = BIT(ABS_X) | BIT(ABS_Y) | BIT(ABS_PRESSURE);