From: Hans-Peter Nilsson Date: Mon, 12 Feb 2007 08:52:45 +0000 (-0800) Subject: [PATCH] SPI cleanup() method param becomes non-const X-Git-Tag: v2.6.21-rc1~274^2~161 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ffa0285052607513a29f529ddb5061c907fd8a6;p=pandora-kernel.git [PATCH] SPI cleanup() method param becomes non-const I'd like to assign NULL to kfree()d members of a structure. I can't do that without ugly casting (see the PXA patch) when the structure pointed to is const-qualified. I don't really see a reason why the cleanup method isn't allowed to alter the object it should clean up. :-) No, I didn't test the PXA patch, but I verified that the NULL-assignment doesn't stop me from doing rmmod/insmodding my own spi_bitbang-based driver. Signed-off-by: Hans-Peter Nilsson Signed-off-by: David Brownell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed