summaryrefslogtreecommitdiff
path: root/drivers/video/omap2
diff options
context:
space:
mode:
authorJeff Mahoney <jeffm@suse.com>2012-04-25 14:32:09 +0000
committerBen Hutchings <ben@decadent.org.uk>2012-05-31 00:43:55 +0100
commitbdd06be083b51fa7bdf04d8c8b699870f29bae69 (patch)
tree5da267c7aa21e94f0cfbc4154ff6eaf6b5068ff6 /drivers/video/omap2
parent6c24eeef039c3fcc0cd81ec4eead2de869eba383 (diff)
dl2k: Clean up rio_ioctl
commit 1bb57e940e1958e40d51f2078f50c3a96a9b2d75 upstream. The dl2k driver's rio_ioctl call has a few issues: - No permissions checking - Implements SIOCGMIIREG and SIOCGMIIREG using the SIOCDEVPRIVATE numbers - Has a few ioctls that may have been used for debugging at one point but have no place in the kernel proper. This patch removes all but the MII ioctls, renumbers them to use the standard ones, and adds the proper permission check for SIOCSMIIREG. We can also get rid of the dl2k-specific struct mii_data in favor of the generic struct mii_ioctl_data. Since we have the phyid on hand, we can add the SIOCGMIIPHY ioctl too. Most of the MII code for the driver could probably be converted to use the generic MII library but I don't have a device to test the results. Reported-by: Stephan Mueller <stephan.mueller@atsec.com> Signed-off-by: Jeff Mahoney <jeffm@suse.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'drivers/video/omap2')
0 files changed, 0 insertions, 0 deletions