can: c_can: use proper type for 'instance'
authorWolfram Sang <wsa@sang-engineering.com>
Thu, 17 Apr 2014 08:57:18 +0000 (10:57 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 24 Apr 2014 20:09:01 +0000 (22:09 +0200)
commitf323d7a1d2868c00b2604dca36ad82e8ecbe4270
treed4db44e61e0d6a6197e47aa74b567f9b034d7608
parent939415973fdfb2c16a474e2575ba2581b828ccac
can: c_can: use proper type for 'instance'

Commit 6439fbce1075 (can: c_can: fix error checking of priv->instance in
probe()) found the warning but applied a suboptimal solution. Since, both
pdev->id and of_alias_get_id() return integers, it makes sense to convert the
variable to an integer and avoid the cast.

Signed-off-by: Wolfram Sang <wsa@sang-engineering.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/c_can/c_can.h
drivers/net/can/c_can/c_can_platform.c