]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[SCSI] sgiwd93: Fix compilation warning
authorDmitri Vorobiev <dmitri.vorobiev@movial.fi>
Tue, 16 Dec 2008 13:04:44 +0000 (15:04 +0200)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Fri, 2 Jan 2009 16:58:41 +0000 (10:58 -0600)
commitb99b4c67db9b6dde67955b3746666505a48ec7ee
tree3b6b53f6ac2dd3bc09b392fc1f1ed57722409bd3
parent752b32329b48e0b7481e82a5f891aa5bf01f3782
[SCSI] sgiwd93: Fix compilation warning

The remove() callback in platform drivers should return int in
accordance to the definition of the platform_driver structure.
However, the SGI-specific WD93 SCSI controller driver defines
the callback as a void function, which causes the following
compilation warning:

drivers/scsi/sgiwd93.c:314: warning: initialization from
incompatible pointer type

This patch fixes the warning by changing the return type of
the remove() callback to what the core driver code requires.

Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@movial.fi>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/sgiwd93.c