From: John Stultz Date: Wed, 1 Jun 2011 06:26:11 +0000 (-0700) Subject: rtc: Fix ioctl error path return X-Git-Tag: v3.0-rc3~3^2~1^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e17fd4ba2a81f1d29875b20464e4899185a3c946;p=pandora-kernel.git rtc: Fix ioctl error path return Bryan Henderson noticed that the "RTC: Fix rtc driver ioctl specific shortcutting" commit has a small bug: When an ioctl is called with an invalid command code and the clock driver does not have an "ioctl" method, the ioctl returns rc 0 instead of -ENOTTY. This patch fixes the issue. CC: Bryan Henderson CC: Gabor Z. Papp Reported-by: Bryan Henderson Signed-off-by: John Stultz --- Reading git-diff-tree failed