/* Initial attempt at a probe function. this can be simplified once the other detection code is gone.  */
int dasd_generic_probe(struct ccw_device *cdev, struct dasd_discipline *discipline)
/* Initial attempt at a probe function. this can be simplified once the other detection code is gone.  */
int dasd_generic_probe(struct ccw_device *cdev, struct dasd_discipline *discipline)
{
	int ret;
	ret = dasd_add_sysfs_files(cdev);
	if (ret) {
		DBF_EVENT_DEVID(DBF_WARNING, cdev, "%s",
				"dasd_generic_probe: could not add "
				"sysfs entries");
		return ret;
	}
	cdev->handler = &dasd_int_handler;
	if ((dasd_get_feature(cdev, DASD_FEATURE_INITIAL_ONLINE) > 0 ) ||
	    (dasd_autodetect && dasd_busid_known(dev_name(&cdev->dev)) != 0))
		async_schedule(dasd_generic_auto_online, cdev);
	return 0;
}