2009/5/31 Baruch Siach <[email protected]>: >> > + r = platform_get_resource(dev, IORESOURCE_MEM, 0); >> > + if (r == NULL) { >> > + ret = -ENODEV; >> >> -ENOENT > > A quick search in the drivers tree showed no -ENOENT in this situation. Of the > 10 first results of grep -ENODEV is the most popular as follows: [The other: 3x -EINVAL one -ENXIO]
Wowsers! And I felt -ENOENT was so intuitive, well if I'm going against common practice, no good. So let's ask the maintainer of the platform bus what shall be returned in this situation: Greg (or some other wise person from linux-kernel) what would you return if platform_get_resource() returns NULL for an expected resource? Linus Walleij ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com _______________________________________________ spi-devel-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/spi-devel-general
