i2c: pnx: Fix crash due to wrong init of timer->data
authorWolfram Sang <w.sang@pengutronix.de>
Fri, 29 Apr 2011 13:30:02 +0000 (15:30 +0200)
committerBen Dooks <ben-linux@fluff.org>
Thu, 12 May 2011 23:10:36 +0000 (00:10 +0100)
commit9ddabb055d73c63037878bb9346e52c7f2e07e96
tree029448dcc4dbaabefe57dcf6b74bb467ee7b0405
parentca1376d10810bc2c20c8d0821a9ee04ca2507c01
i2c: pnx: Fix crash due to wrong init of timer->data

alg_data is already a pointer which must be passed directly.

Reported-by: Dieter Ripp <ripp@systecnet.com>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Ben Dooks <ben-i2c@fluff.org>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
drivers/i2c/busses/i2c-pnx.c