Remove hackish foot protection.. If you ask for an atkbd on an isa bus

rather than on the keyboard controller, you will get it.. (and shoot your
feet)
This commit is contained in:
Peter Wemm 1999-05-09 20:45:53 +00:00
parent 7067d561cc
commit e2eb6a14cd
3 changed files with 3 additions and 51 deletions

View File

@ -23,7 +23,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: atkbdc_isa.c,v 1.3 1999/05/08 20:25:38 peter Exp $
* $Id: atkbdc_isa.c,v 1.4 1999/05/08 21:59:29 dfr Exp $
*/
#include "atkbdc.h"
@ -174,22 +174,6 @@ atkbdc_attach(device_t dev)
resource_query_unit(i));
}
#ifdef __i386__
/*
* Foot protection...
*/
for (i = resource_locate(-1, "atkbd");
i != -1;
i = resource_locate(i, "atkbd")) {
if (device_find_child(dev, resource_query_name(i),
resource_query_unit(i)) == NULL) {
printf("WARNING: Update your atkbdc config!\n");
atkbdc_add_device(dev, resource_query_name(i),
resource_query_unit(i));
}
}
#endif
bus_generic_attach(dev);
return 0;

View File

@ -23,7 +23,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: atkbdc_isa.c,v 1.3 1999/05/08 20:25:38 peter Exp $
* $Id: atkbdc_isa.c,v 1.4 1999/05/08 21:59:29 dfr Exp $
*/
#include "atkbdc.h"
@ -174,22 +174,6 @@ atkbdc_attach(device_t dev)
resource_query_unit(i));
}
#ifdef __i386__
/*
* Foot protection...
*/
for (i = resource_locate(-1, "atkbd");
i != -1;
i = resource_locate(i, "atkbd")) {
if (device_find_child(dev, resource_query_name(i),
resource_query_unit(i)) == NULL) {
printf("WARNING: Update your atkbdc config!\n");
atkbdc_add_device(dev, resource_query_name(i),
resource_query_unit(i));
}
}
#endif
bus_generic_attach(dev);
return 0;

View File

@ -23,7 +23,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: atkbdc_isa.c,v 1.3 1999/05/08 20:25:38 peter Exp $
* $Id: atkbdc_isa.c,v 1.4 1999/05/08 21:59:29 dfr Exp $
*/
#include "atkbdc.h"
@ -174,22 +174,6 @@ atkbdc_attach(device_t dev)
resource_query_unit(i));
}
#ifdef __i386__
/*
* Foot protection...
*/
for (i = resource_locate(-1, "atkbd");
i != -1;
i = resource_locate(i, "atkbd")) {
if (device_find_child(dev, resource_query_name(i),
resource_query_unit(i)) == NULL) {
printf("WARNING: Update your atkbdc config!\n");
atkbdc_add_device(dev, resource_query_name(i),
resource_query_unit(i));
}
}
#endif
bus_generic_attach(dev);
return 0;