Skip to content
Commit 9def2556 authored by Jean Delvare's avatar Jean Delvare Committed by Jean Delvare
Browse files

i2c-parport-light: Don't register a platform device resource



The i2c-parport-light driver isn't a real platform driver, so it
should not instantiate platform devices with resources. The resource
management system can't cope with colliding resources, and we are
likely to create such a colliding resource.

So, better just try to grab the I/O ports we need right at module
initialization time, and bail out if we can't. It has the added
benefit that the module will no longer load if it isn't going to work,
which is definitely more user-friendly.

Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
parent 67a37308
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment